mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-11 12:31:23 +08:00
added fallback local init
This commit is contained in:
@@ -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