Skip to content

Commit

Permalink
refactor for tensorflow1.0-rc1
Browse files Browse the repository at this point in the history
tf.sub() -> tf.subtract()
  • Loading branch information
normanheckscher committed Feb 7, 2017
1 parent 8410cf6 commit 633c81d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nn/batch_norm.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def _build_statistics_second_moment(self, input_batch,
initializer=tf.ones_initializer(),
trainable=False)

self._moving_variance = tf.sub(self._moving_second_moment,
self._moving_variance = tf.subtract(self._moving_second_moment,
tf.square(self._moving_mean),
name="moving_variance")

Expand Down

0 comments on commit 633c81d

Please sign in to comment.