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
Copy file name to clipboardExpand all lines: tensorlayer/layers.py
+50Lines changed: 50 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -3538,6 +3538,56 @@ def __init__(
3538
3538
self.all_layers.extend( [self.outputs] )
3539
3539
self.all_params.extend( variables )
3540
3540
3541
+
classLayerNormLayer(Layer):
3542
+
"""
3543
+
The :class:`LayerNormLayer` class is for layer normalization, see `tf.contrib.layers.layer_norm <https://www.tensorflow.org/api_docs/python/tf/contrib/layers/layer_norm>`_.
3544
+
3545
+
Parameters
3546
+
----------
3547
+
layer : a :class:`Layer` instance
3548
+
The `Layer` class feeding into this layer.
3549
+
act : activation function
3550
+
The function that is applied to the layer activations.
3551
+
others : see `tf.contrib.layers.layer_norm <https://www.tensorflow.org/api_docs/python/tf/contrib/layers/layer_norm>`_
0 commit comments