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
ConstructorsConstructorDescriptionOptions(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) 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 theactivationrecord component.intdilation()Returns the value of thedilationrecord component.final booleanIndicates whether some other object is "equal to" this one.intgroups()Returns the value of thegroupsrecord component.final inthashCode()Returns a hash code value for this object.intin()Returns the value of theinrecord component.intkernel()Returns the value of thekernelrecord component.Returns the value of thenormLayerrecord component.intout()Returns the value of theoutrecord component.intpadding()Returns the value of thepaddingrecord component.intstride()Returns the value of thestriderecord component.final StringtoString()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) 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
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
in
-
out
-
kernel
-
stride
-
padding
-
dilation
-
groups
-
normLayer
-
activation
Returns the value of theactivationrecord component.- Returns:
- the value of the
activationrecord component
-