Package smile.deep.layer
Class GroupNormLayer
java.lang.Object
smile.deep.layer.GroupNormLayer
Group normalization. The input channels are separated into groups.
The mean and standard-deviation are calculated separately over each
group.
-
Constructor Summary
ConstructorDescriptionGroupNormLayer
(int groups, int channels) Constructor.GroupNormLayer
(int groups, int channels, double eps, boolean affine) Constructor. -
Method Summary
-
Constructor Details
-
GroupNormLayer
public GroupNormLayer(int groups, int channels) Constructor.- Parameters:
groups
- the number of groups to separate the channels into. The number of channels must be divisible by the number of groups.channels
- the number of input channels in (N,C,H,W).
-
GroupNormLayer
public GroupNormLayer(int groups, int channels, double eps, boolean affine) Constructor.- Parameters:
groups
- the number of groups to separate the channels into. The number of channels must be divisible by the number of groups.channels
- the number of input channels in (N,C,H,W).eps
- a value added to the denominator for numerical stability.affine
- when set to true, this layer has learnable affine parameters.
-
-
Method Details