You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable skip biases in Conv3dLayer, the same as beta and gamma in BN Layer (#421)
* update by lllcho on March 15
* update logging
* b_init in c3d can None and gamma/beta in BN layer can skip
* fix some comments
* add comments in bn layer
Copy file name to clipboardExpand all lines: tensorlayer/layers/normalization.py
+28-17Lines changed: 28 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -75,10 +75,13 @@ class BatchNormLayer(Layer):
75
75
The activation function of this layer.
76
76
is_train : boolean
77
77
Is being used for training or inference.
78
-
beta_init : initializer
79
-
The initializer for initializing beta.
80
-
gamma_init : initializer
81
-
The initializer for initializing gamma.
78
+
beta_init : initializer or None
79
+
The initializer for initializing beta, if None, skip beta.
80
+
Usually you should not skip beta unless you know what happened.
81
+
gamma_init : initializer or None
82
+
The initializer for initializing gamma, if None, skip gamma.
83
+
When the batch normalization layer is use instead of 'biases', or the next layer is linear, this can be
84
+
disabled since the scaling can be done by the next layer. see `Inception-ResNet-v2 <https://github.com/tensorflow/models/blob/master/research/slim/nets/inception_resnet_v2.py>`__
0 commit comments