Skip to content

Commit f5d67d6

Browse files
committed
Unsafe loading
1 parent dba5ba4 commit f5d67d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchmdnet/models/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def load_model(filepath, args=None, device="cpu", return_std=False, **kwargs):
209209
filepath, args=args, device=device, return_std=return_std, **kwargs
210210
)
211211
assert isinstance(filepath, str)
212-
ckpt = torch.load(filepath, map_location="cpu", weights_only=True)
212+
ckpt = torch.load(filepath, map_location="cpu", weights_only=False)
213213
if args is None:
214214
args = ckpt["hyper_parameters"]
215215

0 commit comments

Comments
 (0)