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 37899b3 commit a2613a1Copy full SHA for a2613a1
tensorlayer/layers.py
@@ -1719,9 +1719,14 @@ def _get_variable(name,
1719
beta = _get_variable('beta',
1720
params_shape,
1721
initializer=beta_init)
1722
- gamma = _get_variable('gamma',
1723
- params_shape,
1724
- initializer=gamma_init)
+ try: # TF12
+ gamma = _get_variable('gamma',
+ params_shape,
1725
+ initializer=gamma_init())
1726
+ except: # TF11
1727
1728
1729
+ initializer=gamma_init)
1730
1731
# trainable=False means : it prevent TF from updating this variable
1732
# from the gradient, we have to update this from the mean computed
0 commit comments