mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-27 13:12:20 +08:00
fixed callback metrics ddp bug
This commit is contained in:
1 parent
5f1f3f6acc
commit
6e0a562ecb
1 file changed
+3
@@ -1285,6 +1285,9 @@ class Trainer(TrainerIO):
|
||||
nb_gpus = self.num_gpus
|
||||
callback_metrics = reduce_distributed_output(callback_metrics, nb_gpus)
|
||||
|
||||
for k, v in callback_metrics.items():
|
||||
callback_metrics[k] = v.item()
|
||||
|
||||
# ---------------
|
||||
# EXTRACT PROGRESS BAR KEYS
|
||||
# ---------------
|
||||
|
||||
Reference in new issue
Block a user