Skip to content

Commit

Permalink
corrected device assignment for non-cuda
Browse files Browse the repository at this point in the history
  • Loading branch information
AznamirWoW committed Jan 25, 2025
1 parent 8d6398b commit 9cfa0ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rvc/train/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,8 @@ def run(
net_g = net_g.cuda(device_id)
net_d = net_d.cuda(device_id)
else:
net_g.to(device)
net_d.to(device)
net_g = net_g.to(device)
net_d = net_d.to(device)

if optimizer == "AdamW":
optimizer = torch.optim.AdamW
Expand Down

0 comments on commit 9cfa0ae

Please sign in to comment.