We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b60c5d1 commit 06c0bcdCopy full SHA for 06c0bcd
tibert/train.py
@@ -75,7 +75,7 @@ def _optimizer_to_(
75
for state in optimizer.state.values():
76
for k, v in state.items():
77
if isinstance(v, torch.Tensor):
78
- state[k] = v.cuda()
+ state[k] = v.to(device)
79
return optimizer
80
81
0 commit comments