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 edd27c7 commit 9ada2cbCopy full SHA for 9ada2cb
tensorlayer/layers.py
@@ -1924,7 +1924,7 @@ def __init__(
1924
axis = list(range(len(x_shape) - 1))
1925
1926
## 1. beta, gamma
1927
- if tf.__version__ > '0.12' and beta_init == tf.zeros_initializer:
+ if tf.__version__ > '0.12.1' and beta_init == tf.zeros_initializer:
1928
beta_init = beta_init()
1929
beta = tf.get_variable('beta', shape=params_shape,
1930
initializer=beta_init,
@@ -1935,7 +1935,7 @@ def __init__(
1935
)#restore=restore)
1936
1937
## 2.
1938
- if tf.__version__ > '0.12':
+ if tf.__version__ > '0.12.1':
1939
moving_mean_init = tf.zeros_initializer()
1940
else:
1941
moving_mean_init = tf.zeros_initializer
0 commit comments