Skip to content

Commit

Permalink
pt: cleanup tester (#3442)
Browse files Browse the repository at this point in the history
  • Loading branch information
iProzd authored Mar 10, 2024
1 parent fd82f04 commit a286bd4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 354 deletions.
4 changes: 1 addition & 3 deletions deepmd/pt/entrypoints/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,7 @@ def train(FLAGS):


def freeze(FLAGS):
model = torch.jit.script(
inference.Tester(FLAGS.model, numb_test=1, head=FLAGS.head).model
)
model = torch.jit.script(inference.Tester(FLAGS.model, head=FLAGS.head).model)
torch.jit.save(
model,
FLAGS.output,
Expand Down
Loading

0 comments on commit a286bd4

Please sign in to comment.