We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b78491a commit e6d0950Copy full SHA for e6d0950
1 file changed
deepmd/pt/infer/deep_eval.py
@@ -220,7 +220,11 @@ def get_dim_aparam(self) -> int:
220
221
def has_default_fparam(self) -> bool:
222
"""Check if the model has default frame parameters."""
223
- return self.dp.model["Default"].has_default_fparam()
+ try:
224
+ return self.dp.model["Default"].has_default_fparam()
225
+ except AttributeError:
226
+ # for compatibility with old models
227
+ return False
228
229
def get_intensive(self) -> bool:
230
return self.dp.model["Default"].get_intensive()
0 commit comments