Skip to content

Commit

Permalink
fix: use get_model_def_script method
Browse files Browse the repository at this point in the history
  • Loading branch information
iProzd committed May 31, 2024
1 parent 3a7fbcf commit ae0fa4e
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 ae0fa4e

Please sign in to comment.