set dp as default backend

This commit is contained in:
William Falcon 2019-07-18 11:40:00 -04:00
parent 4db32984c6
commit c67c84b443
1 changed files with 3 additions and 0 deletions

View File

@ -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):