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
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) 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 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) 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 theinrecord component.- Returns:
- the value of the
inrecord component
-
out
public int out()Returns the value of theoutrecord component.- Returns:
- the value of the
outrecord component
-
kernel
public int kernel()Returns the value of thekernelrecord component.- Returns:
- the value of the
kernelrecord component
-
stride
public int stride()Returns the value of thestriderecord component.- Returns:
- the value of the
striderecord component
-
padding
public int padding()Returns the value of thepaddingrecord component.- Returns:
- the value of the
paddingrecord component
-
dilation
public int dilation()Returns the value of thedilationrecord component.- Returns:
- the value of the
dilationrecord component
-
groups
public int groups()Returns the value of thegroupsrecord component.- Returns:
- the value of the
groupsrecord component
-
normLayer
Returns the value of thenormLayerrecord component.- Returns:
- the value of the
normLayerrecord component
-
activation
Returns the value of theactivationrecord component.- Returns:
- the value of the
activationrecord component
-