MCPcopy Index your code
hub / github.com/tensorlayer/TensorLayer / forward

Method forward

tensorlayer/layers/normalization.py:485–490  ·  view source on GitHub ↗
(self, inputs)

Source from the content-addressed store, hash-verified

483 self.gamma = self._get_weights("gamma", shape=params_shape, init=self.gamma_init)
484
485 def forward(self, inputs):
486 mean, var = tf.nn.moments(inputs, self.axes, keepdims=True)
487 outputs = batch_normalization(inputs, mean, var, self.beta, self.gamma, self.epsilon, self.data_format)
488 if self.act:
489 outputs = self.act(outputs)
490 return outputs
491
492
493class InstanceNorm1d(InstanceNorm):

Callers

nothing calls this directly

Calls 1

batch_normalizationFunction · 0.85

Tested by

no test coverage detected