Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
weights_only=True
  • Loading branch information
sergeyplis authored Aug 12, 2024
1 parent 8f46a51 commit 940ee55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mindfultensors/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def qnormalize(img, qmin=0.01, qmax=0.99):

def mtransform(tensor_binary):
buffer = io.BytesIO(tensor_binary)
tensor = torch.load(buffer)
tensor = torch.load(buffer, weights_only=True)
return tensor


Expand Down

0 comments on commit 940ee55

Please sign in to comment.