mirror of
https://github.com/wassname/TTS.git
synced 2026-10-28 12:41:20 +08:00
Fix capacitron test when cuda is enabled
This commit is contained in:
1 parent
9321b22203
commit
4787a2a993
1 file changed
+1
-1
@@ -301,7 +301,7 @@ class TacotronCapacitronTrainTest(unittest.TestCase):
|
||||
batch["stop_targets"] = (batch["stop_targets"].sum(2) > 0.0).unsqueeze(2).float().squeeze()
|
||||
|
||||
model = Tacotron2(config).to(device)
|
||||
criterion = model.get_criterion()
|
||||
criterion = model.get_criterion().to(device)
|
||||
optimizer = model.get_optimizer()
|
||||
|
||||
model.train()
|
||||
|
||||
Reference in new issue
Block a user