Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MultiNodeBatchNormalization #106

Merged
merged 20 commits into from
Aug 24, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix the test by ignoring configurations with a single node
  • Loading branch information
iwiwi committed Aug 23, 2017
commit 37a5ab8b370b9d957d68882742005dd0286b6a4d
3 changes: 2 additions & 1 deletion tests/links_tests/test_batch_normalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ def test_multi_node_bn(self):
chainer.testing.assert_allclose(p1[1].grad, p4[1].grad)

# This is to see that this test is valid.
self.assert_not_allclose(p1[1].grad, p2[1].grad)
if comm.size >= 2:
self.assert_not_allclose(p1[1].grad, p2[1].grad)

def assert_not_allclose(self, x, y, atol=1e-5, rtol=1e-4, verbose=True):
x = chainer.cuda.to_cpu(chainer.utils.force_array(x))
Expand Down