Skip to content

Commit 7a877ac

Browse files
authored
Merge pull request #34 from michuanhaohao/patch-3
BatchNormLayer for TF12, tf.one_initializer()
2 parents 5e9f95a + 35c7f83 commit 7a877ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorlayer/layers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1733,7 +1733,7 @@ def _get_variable(name,
17331733
trainable=False)
17341734
moving_variance = _get_variable('moving_variance',
17351735
params_shape,
1736-
initializer=tf.ones_initializer,
1736+
initializer=tf.ones_initializer(),
17371737
trainable=False)
17381738

17391739
# These ops will only be preformed when training.

0 commit comments

Comments
 (0)