We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c45feb2 commit 2c5744eCopy full SHA for 2c5744e
tensorlayer/layers.py
100755
100644
@@ -1931,7 +1931,7 @@ def __init__(
1931
axis = list(range(len(x_shape) - 1))
1932
1933
## 1. beta, gamma
1934
- if tf.__version__ >= '0.11' and beta_init == tf.zeros_initializer:
+ if tf.__version__ >= '0.12' and beta_init == tf.zeros_initializer:
1935
beta_init = beta_init()
1936
beta = tf.get_variable('beta', shape=params_shape,
1937
initializer=beta_init,
@@ -1960,7 +1960,7 @@ def __init__(
1960
# initializer=tf.ones_initializer,
1961
# trainable=False)
1962
1963
- if tf.__version__ >= '0.11':
+ if tf.__version__ >= '0.12':
1964
moving_mean_init = tf.zeros_initializer()
1965
else:
1966
moving_mean_init = tf.zeros_initializer
0 commit comments