added fallback local init

This commit is contained in:
William Falcon
2019-07-13 22:16:10 -04:00
parent eb05fa316f
commit a2639c6894
+1 -1
View File
@@ -599,7 +599,7 @@ class Trainer(TrainerIO):
try:
loss = output['loss']
except Exception as e:
if type(loss) is torch.Tensor:
if type(output) is torch.Tensor:
loss = output
self.__add_tqdm_metrics(model_specific_tqdm_metrics_dic)