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
Show file tree
Hide file tree
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
Next Next commit
Fix PEP8
  • Loading branch information
iwiwi committed Aug 15, 2017
commit 9df28315f91f8fb06328dda02e76c7b7483fb7ac
4 changes: 2 additions & 2 deletions chainermn/functions/batch_normalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ def __init__(self, comm, eps=2e-5, mean=None, var=None, decay=0.9):
self.decay = decay

# We need to delay importing MPI4py (and momdules that import MPI4py)
from mpi4py import MPI as mpi4py_module
import chainermn.communicators._memory_utility as memory_utility_module
self.mpi4py_module = mpi4py_module
from mpi4py import MPI as mpi4py_module
self.memory_utility_module = memory_utility_module
self.mpi4py_module = mpi4py_module

def check_type_forward(self, in_types):
n_in = type_check.eval(in_types.size())
Expand Down
4 changes: 2 additions & 2 deletions chainermn/links/batch_normalization.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import chainer.utils
from chainer import configuration
from chainer import cuda
from chainer.functions.normalization import batch_normalization
from chainer import initializers
from chainer import link
import chainer.utils
from chainer import variable
from chainer.functions.normalization import batch_normalization
import numpy

from chainermn.functions.batch_normalization import \
Expand Down