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 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

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • in

      public int in()
      Returns the value of the in record component.
      Returns:
      the value of the in record component
    • out

      public int out()
      Returns the value of the out record component.
      Returns:
      the value of the out record component
    • kernel

      public int kernel()
      Returns the value of the kernel record component.
      Returns:
      the value of the kernel record component
    • stride

      public int stride()
      Returns the value of the stride record component.
      Returns:
      the value of the stride record component
    • padding

      public int padding()
      Returns the value of the padding record component.
      Returns:
      the value of the padding record component
    • dilation

      public int dilation()
      Returns the value of the dilation record component.
      Returns:
      the value of the dilation record component
    • groups

      public int groups()
      Returns the value of the groups record component.
      Returns:
      the value of the groups record component
    • normLayer

      public IntFunction<Layer> normLayer()
      Returns the value of the normLayer record component.
      Returns:
      the value of the normLayer record component
    • activation

      public ActivationFunction activation()
      Returns the value of the activation record component.
      Returns:
      the value of the activation record component