In tensorflow.contrib.slim.batch_norm, math_ops.add(moving_mean, 0)
is used to copy the value of moving_mean
, which is passed to nn.moments
subsequently.
Would it be a problem if we just pass moving_mean
to nn.moments
directly?
Are there any guidelines on the use of copy operation (tf.add(t, 0)
)?