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 e57225d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions aria/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ 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 e57225d

Please sign in to comment.