Skip to content

Commit

Permalink
fixed bug on cpu-only machine
Browse files Browse the repository at this point in the history
  • Loading branch information
simplymathematics committed Dec 1, 2023
1 parent 13c7852 commit 8f47796
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deckard/base/model/art_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ def __call__(self):
data = [torch.from_numpy(d).to(device) for d in data]
data = [d.to(device) for d in data]
model.to(device)
else:
device = torch.device("cpu")
model = TorchInitializer(
data=data,
model=model,
Expand Down

0 comments on commit 8f47796

Please sign in to comment.