Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
honglu2875 committed Jan 27, 2024
1 parent 830daa9 commit 2233495
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aria/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,6 @@ def _load_weight(ckpt_path: str, device="cpu"):
) from e
return load_file(ckpt_path, device=device)
else:
import torch

return torch.load(ckpt_path, map_location=device)

0 comments on commit 2233495

Please sign in to comment.