Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: cast input and output types at model's interface #3352

Merged
merged 9 commits into from
Feb 29, 2024

Conversation

wanghan-iapcm
Copy link
Collaborator

No description provided.

Comment on lines +242 to +247
# for vv, kk in zip([fparam, aparam], ["frame", "atomic"]):
# if vv is not None and self.reverse_precision_dict[vv.dtype] != input_prec:
# log.warning(
# f"type of {kk} parameter {self.reverse_precision_dict[vv.dtype]}"
# " does not match"
# f" that of the coordinate {input_prec}"

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
Copy link

codecov bot commented Feb 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.87%. Comparing base (2a1508d) to head (5058359).

Additional details and impacted files
@@            Coverage Diff             @@
##            devel    #3352      +/-   ##
==========================================
+ Coverage   75.85%   75.87%   +0.02%     
==========================================
  Files         416      416              
  Lines       34908    34975      +67     
  Branches     1614     1614              
==========================================
+ Hits        26480    26538      +58     
- Misses       7560     7569       +9     
  Partials      868      868              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

deepmd/pt/model/model/make_model.py Outdated Show resolved Hide resolved
deepmd/pt/utils/env.py Fixed Show fixed Hide fixed
@wanghan-iapcm wanghan-iapcm added this pull request to the merge queue Feb 29, 2024
Merged via the queue into deepmodeling:devel with commit 2bee22c Feb 29, 2024
48 checks passed
@wanghan-iapcm wanghan-iapcm deleted the fix-prec-cast branch February 29, 2024 02:44
@njzjz njzjz mentioned this pull request Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants