You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I implemented this function some time ago by copying all the forward related code before descriptor to eval_descriptor, but I think this implementation is rather redundant.
def fail(self, *args, **kwargs):
> raise RuntimeError(name + " is not supported on ScriptModules")
E RuntimeError: register_forward_hook is not supported on ScriptModules
../../anaconda3/lib/python3.10/site-packages/torch/jit/_script.py:981: RuntimeError
njzjz
added a commit
to njzjz/deepmd-kit
that referenced
this issue
Oct 14, 2024
Fix#4112.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Introduced a method for evaluating descriptors using the deep
potential model.
- Added functionality to control descriptor evaluation during model
operations.
- **Bug Fixes**
- Removed conditional skip for descriptor evaluation tests, enhancing
test coverage for PyTorch models.
- **Tests**
- Added a new test class for neighbor list setups in descriptor
evaluation.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Signed-off-by: Jinzhe Zeng <[email protected]>
Summary
Support
eval_descriptor
for PTDeepEval
.Detailed Description
The abstract method is here:
deepmd-kit/deepmd/infer/deep_eval.py
Lines 172 to 222 in d2b6243
However, how to do it for PT needs to be clarified. PT descriptor has a different
forward
method.Further Information, Files, and Links
No response
The text was updated successfully, but these errors were encountered: