Package smile.vision.layer
Record Class Conv2dNormActivation.Options
java.lang.Object
java.lang.Record
smile.vision.layer.Conv2dNormActivation.Options
- Record Components:
in
- the number of input channels.out
- the number of output channels/features.kernel
- the window/kernel size.stride
- controls the stride for the cross-correlation.padding
- controls the amount of padding applied on both sides.dilation
- controls the spacing between the kernel points.groups
- controls the connections between inputs and outputs. The in channels and out channels must both be divisible by groups.normLayer
- the functor to create the normalization layer.activation
- the activation function.
- Enclosing class:
Conv2dNormActivation
public static record Conv2dNormActivation.Options(int in, int out, int kernel, int stride, int padding, int dilation, int groups, IntFunction<Layer> normLayer, ActivationFunction activation)
extends Record
Conv2dNormActivation configurations.
-
Constructor Summary
ConstructorDescriptionOptions
(int in, int out, int kernel) Constructor.Options
(int in, int out, int kernel, int stride, int padding, int dilation, int groups, IntFunction<Layer> normLayer, ActivationFunction activation) Custom constructor.Options
(int in, int out, int kernel, int stride, int groups, IntFunction<Layer> normLayer, ActivationFunction activation) Constructor.Options
(int in, int out, int kernel, int stride, IntFunction<Layer> normLayer, ActivationFunction activation) Constructor.Options
(int in, int out, int kernel, IntFunction<Layer> normLayer, ActivationFunction activation) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactivation
record component.int
dilation()
Returns the value of thedilation
record component.final boolean
Indicates whether some other object is "equal to" this one.int
groups()
Returns the value of thegroups
record component.final int
hashCode()
Returns a hash code value for this object.int
in()
Returns the value of thein
record component.int
kernel()
Returns the value of thekernel
record component.Returns the value of thenormLayer
record component.int
out()
Returns the value of theout
record component.int
padding()
Returns the value of thepadding
record component.int
stride()
Returns the value of thestride
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Options
public Options(int in, int out, int kernel, int stride, int padding, int dilation, int groups, IntFunction<Layer> normLayer, ActivationFunction activation) Custom constructor. -
Options
public Options(int in, int out, int kernel) Constructor.- Parameters:
in
- the number of input channels.out
- the number of output channels/features.kernel
- the window/kernel size.
-
Options
public Options(int in, int out, int kernel, IntFunction<Layer> normLayer, ActivationFunction activation) Constructor.- Parameters:
in
- the number of input channels.out
- the number of output channels/features.kernel
- the window/kernel size.normLayer
- the functor to create the normalization layer.activation
- the activation function.
-
Options
public Options(int in, int out, int kernel, int stride, IntFunction<Layer> normLayer, ActivationFunction activation) Constructor.- Parameters:
in
- the number of input channels.out
- the number of output channels/features.kernel
- the window/kernel size.stride
- controls the stride for the cross-correlation.normLayer
- the functor to create the normalization layer.activation
- the activation function.
-
Options
public Options(int in, int out, int kernel, int stride, int groups, IntFunction<Layer> normLayer, ActivationFunction activation) Constructor.- Parameters:
in
- the number of input channels.out
- the number of output channels/features.kernel
- the window/kernel size.stride
- controls the stride for the cross-correlation.groups
- controls the connections between inputs and outputs. The in channels and out channels must both be divisible by groups.normLayer
- the functor to create the normalization layer.activation
- the activation function.
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
in
public int in()Returns the value of thein
record component.- Returns:
- the value of the
in
record component
-
out
public int out()Returns the value of theout
record component.- Returns:
- the value of the
out
record component
-
kernel
public int kernel()Returns the value of thekernel
record component.- Returns:
- the value of the
kernel
record component
-
stride
public int stride()Returns the value of thestride
record component.- Returns:
- the value of the
stride
record component
-
padding
public int padding()Returns the value of thepadding
record component.- Returns:
- the value of the
padding
record component
-
dilation
public int dilation()Returns the value of thedilation
record component.- Returns:
- the value of the
dilation
record component
-
groups
public int groups()Returns the value of thegroups
record component.- Returns:
- the value of the
groups
record component
-
normLayer
Returns the value of thenormLayer
record component.- Returns:
- the value of the
normLayer
record component
-
activation
Returns the value of theactivation
record component.- Returns:
- the value of the
activation
record component
-