Skip to content

Commit

Permalink
fix new pytorch error
Browse files Browse the repository at this point in the history
  • Loading branch information
mzouink committed Aug 5, 2024
1 parent a7200c2 commit 8d06bdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dacapo/store/local_weights_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def retrieve_weights(self, run: str, iteration: int) -> Weights:

weights_name = self.__get_weights_dir(run) / "iterations" / str(iteration)

weights: Weights = torch.load(weights_name, map_location="cpu", weights_only=True)
weights: Weights = torch.load(weights_name, map_location="cpu", weights_only=False)
if not isinstance(weights, Weights):
# backwards compatibility
weights = Weights(weights["model"], weights["optimizer"])
Expand Down

0 comments on commit 8d06bdb

Please sign in to comment.