Skip to content

Commit f69ab50

Browse files
committed
Fix
Signed-off-by: Eric Kerfoot <[email protected]>
1 parent 7551ec5 commit f69ab50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

monai/utils/state_cacher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def retrieve(self, key: Hashable) -> Any:
124124
fn = self.cached[key]["obj"] # pytype: disable=attribute-error
125125
if not os.path.exists(fn): # pytype: disable=wrong-arg-types
126126
raise RuntimeError(f"Failed to load state in {fn}. File doesn't exist anymore.")
127-
data_obj = torch.load(fn, map_location=lambda storage, location: storage, weights_only=True)
127+
data_obj = torch.load(fn, map_location=lambda storage, location: storage, weights_only=False)
128128
# copy back to device if necessary
129129
if "device" in self.cached[key]:
130130
data_obj = data_obj.to(self.cached[key]["device"])

0 commit comments

Comments
 (0)