Skip to content

Commit

Permalink
Fix cuda-cpu load in convert
Browse files Browse the repository at this point in the history
  • Loading branch information
relativityhd committed Jan 9, 2025
1 parent ff2999f commit 21d295f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion darts/src/darts/legacy_training/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def convert_lightning_checkpoint(
import torch

logger.debug(f"Loading checkpoint from {lightning_checkpoint.resolve()}")
lckpt = torch.load(lightning_checkpoint, weights_only=False)
lckpt = torch.load(lightning_checkpoint, weights_only=False, map_location=torch.device("cpu"))

now = datetime.now()
formatted_date = now.strftime("%Y-%m-%d")
Expand Down

0 comments on commit 21d295f

Please sign in to comment.