Skip to content

Commit

Permalink
move to cuda
Browse files Browse the repository at this point in the history
  • Loading branch information
parthraut committed Dec 13, 2024
1 parent 856b48e commit 4140af5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zeus/utils/framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def all_reduce(
return object

# wrap object in a tensor
tensor = torch.Tensor(object, device="cuda")
tensor = torch.Tensor(object).cuda()

# determine operation
if operation == "sum":
Expand Down

0 comments on commit 4140af5

Please sign in to comment.