dc56b7e531a727b1fbaacdffccb01fbe7475dee1,tflearn/layers/normalization.py,,batch_normalization,#Any#Any#Any#Any#Any#Any#Any#Any#Any#,11
Before Change
tf.add_to_collection(tf.GraphKeys.EXCL_RESTORE_VARS, gamma)
ema = tf.train.ExponentialMovingAverage(decay=decay)
axis = [i for i in range(input_ndim - 1)]
if len(axis) < 1: axis = [0]
batch_mean, batch_var = tf.nn.moments(incoming, axis,
name="moments")
ema_apply_op = ema.apply([batch_mean, batch_var])
ema_mean, ema_var = ema.average(batch_mean), ema.average(
batch_var)
After Change
incoming, mean, var, beta, gamma, epsilon,
scale_after_normalization=True,
)
inference.set_shape(input_shape)
// Add attributes for easy access
inference.scope = scope
inference.beta = beta
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: tflearn/tflearn
Commit Name: dc56b7e531a727b1fbaacdffccb01fbe7475dee1
Time: 2016-04-24
Author: aymeric.damien@gmail.com
File Name: tflearn/layers/normalization.py
Class Name:
Method Name: batch_normalization
Project Name: NifTK/NiftyNet
Commit Name: 135a56e0935fbb04811f8ce7b9f514f498212f71
Time: 2018-07-25
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/layer/crf.py
Class Name:
Method Name: ftheta
Project Name: NifTK/NiftyNet
Commit Name: be296bdca43479c3e6155444a0c171bed4b3398c
Time: 2017-10-31
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/contrib/sampler_pairwise/sampler_pairwise.py
Class Name: PairwiseSampler
Method Name: layer_op