Closed njzjz closed 3 months ago
deepmd/tf/infer/deep_eval.py (2)
`204-204`: Initialization of `modifier_type` in `_init_tensors` method. This change aligns with the PR's objective to handle `modifier_type` more effectively by initializing it in the `_init_tensors` method instead of the constructor. --- `265-267`: Handling of `modifier_type` in `_init_attr` method. The update to conditionally set `modifier_type` based on its presence in tensors is a robust enhancement. This ensures that `modifier_type` is only set if it is indeed available, preventing potential errors.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 82.67%. Comparing base (
eb474d4
) to head (f9e0a5a
). Report is 120 commits behind head on devel.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
A downgrade in #3213.
Summary by CodeRabbit
modifier_type
in the evaluation process to enhance model flexibility.