mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-09 11:32:07 +08:00
set dp as default backend
This commit is contained in:
@@ -29,7 +29,7 @@ except ModuleNotFoundError:
|
||||
|
||||
|
||||
def reduce_distributed_output(output, nb_gpus):
|
||||
if nb_gpus <= 1:
|
||||
if nb_gpus <= 1 or type(output) is torch.Tensor:
|
||||
return output
|
||||
|
||||
for k, v in output.items():
|
||||
|
||||
Reference in New Issue
Block a user