added dp reduce out test

This commit is contained in:
William Falcon 2019-07-24 20:22:54 -04:00
parent d6e7994922
commit 23e7521300
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ def test_dp_output_reduce():
# test identity when we have a single gpu
out = torch.rand(3, 1)
assert reduce_distributed_output(out, nb_gpus=1) == out
assert reduce_distributed_output(out, nb_gpus=1) is out
# average when we have multiples
assert reduce_distributed_output(out, nb_gpus=2) == out.mean()