Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
lshqqytiger committed Apr 19, 2024
1 parent 7478723 commit b7c5e60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/dml/hijack/torch.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def pow_(self: torch.Tensor, *args, **kwargs):


_load = torch.load
def load(f, map_location, *args, **kwargs):
def load(f, map_location = "cpu", *args, **kwargs):
if type(map_location) in (str, torch.device,):
device = torch.device(map_location)
if device.type == "privateuseone":
Expand Down

0 comments on commit b7c5e60

Please sign in to comment.