mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-27 13:12:20 +08:00
added fallback local init
This commit is contained in:
1 parent
eb05fa316f
commit
a2639c6894
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user