Class RMSNormLayer
java.lang.Object
smile.deep.layer.RMSNormLayer
Root Mean Square Layer Normalization. RMSNorm regularizes the summed inputs
to a neuron in one layer according to root mean square (RMS), giving the
model re-scaling invariance property and implicit learning rate adaptation
ability. RMSNorm is computationally simpler and thus more efficient than LayerNorm.
-
Constructor Details
-
RMSNormLayer
public RMSNormLayer(int dim) Constructor.- Parameters:
dim- the layer size.
-
RMSNormLayer
public RMSNormLayer(int dim, double eps) Constructor.- Parameters:
dim- the layer size.eps- the term added to the denominator to improve numerical stability.
-
-
Method Details
-
forward
-
asTorch
-