set dp as default backend
This commit is contained in:
parent
4db32984c6
commit
c67c84b443
|
@ -29,6 +29,9 @@ except ModuleNotFoundError:
|
|||
|
||||
|
||||
def reduce_distributed_output(output, nb_gpus):
|
||||
if nb_gpus <= 1:
|
||||
return output
|
||||
|
||||
for k, v in output.items():
|
||||
# recurse on nested dics
|
||||
if isinstance(output[k], dict):
|
||||
|
|
Loading…
Reference in New Issue