Skip to content

Commit

Permalink
torch load weights_only set to False
Browse files Browse the repository at this point in the history
  • Loading branch information
rwedge committed Feb 10, 2025
1 parent dc2129f commit 36de06d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ctgan/synthesizers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def save(self, path):
def load(cls, path):
"""Load the model stored in the passed `path`."""
device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')
model = torch.load(path)
model = torch.load(path, weights_only=False)
model.set_device(device)
return model

Expand Down

0 comments on commit 36de06d

Please sign in to comment.