Skip to content

Commit

Permalink
init branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Chengqian-Zhang committed Aug 28, 2024
1 parent 15cd17a commit 390223d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deepmd/pt/infer/deep_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ def __init__(
] = state_dict[item].clone()
state_dict = state_dict_head
model = get_model(self.input_param).to(DEVICE)
model = torch.jit.script(model)

#model = torch.jit.script(model)
self.dp = ModelWrapper(model)
self.dp.load_state_dict(state_dict)
elif str(self.model_path).endswith(".pth"):
Expand Down

0 comments on commit 390223d

Please sign in to comment.