piiswrong commented on a change in pull request #9807: temporary solution for instancenorm, will refactor using backend URL: https://github.com/apache/incubator-mxnet/pull/9807#discussion_r168931896
########## File path: python/mxnet/gluon/nn/basic_layers.py ########## @@ -463,11 +468,12 @@ class InstanceNorm(HybridBlock): [[-0.99998319 0.99998361]]] <NDArray 2x1x2 @cpu(0)> """ - def __init__(self, epsilon=1e-5, center=True, scale=False, + def __init__(self, axis=1, epsilon=1e-5, center=True, scale=False, beta_initializer='zeros', gamma_initializer='ones', in_channels=0, **kwargs): super(InstanceNorm, self).__init__(**kwargs) self._kwargs = {'eps': epsilon} + self.axis = axis Review comment: self._axis ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services