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 Summary
ConstructorsConstructorDescriptionRMSNormLayer(int dim) Constructor.RMSNormLayer(int dim, double eps) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionForward propagation (or forward pass) through the layer.module()Returns the nativeST_Modulehandle for this layer.
-
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