bug fix vocoder training

This commit is contained in:
erogol
2020-06-15 19:04:05 +02:00
parent 16eb15a5ff
commit acb367be26
2 changed files with 6 additions and 3 deletions
+4 -1
View File
@@ -173,7 +173,10 @@ def train(model_G, criterion_G, optimizer_G, model_D, criterion_D, optimizer_D,
loss_dict = dict()
for key, value in loss_G_dict.items():
loss_dict[key] = value.item()
if isinstance(value, int):
loss_dict[key] = value
else:
loss_dict[key] = value.item()
##############################
# DISCRIMINATOR