Skip to content

Commit

Permalink
fix: use get_model_def_script method (deepmodeling#3843)
Browse files Browse the repository at this point in the history
  • Loading branch information
iProzd authored May 31, 2024
1 parent e3acea5 commit d4b6c41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepmd/pt/entrypoints/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def train(FLAGS):

def freeze(FLAGS):
model = torch.jit.script(inference.Tester(FLAGS.model, head=FLAGS.head).model)
if '"type": "dpa2"' in model.model_def_script:
if '"type": "dpa2"' in model.get_model_def_script():
extra_files = {"type": "dpa2"}
else:
extra_files = {"type": "else"}
Expand Down

0 comments on commit d4b6c41

Please sign in to comment.