Skip to content

Commit

Permalink
pt: cleanup tester
Browse files Browse the repository at this point in the history
  • Loading branch information
iProzd committed Mar 9, 2024
1 parent a9bcf41 commit bb324ff
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)

Check warning on line 284 in deepmd/pt/entrypoints/main.py

View check run for this annotation

Codecov / codecov/patch

deepmd/pt/entrypoints/main.py#L284

Added line #L284 was not covered by tests
torch.jit.save(
model,
FLAGS.output,
Expand Down
Loading

0 comments on commit bb324ff

Please sign in to comment.