Class Conv1d

java.lang.Object
ai.beestream.jitnn.nn.Module
ai.beestream.jitnn.nn.Conv1d
All Implemented Interfaces:
AutoCloseable

public final class Conv1d extends Module
1-D convolution over [N, C, ...] with a cubic kernel, optionally grouped, PyTorch's initialisation: weight and bias uniform in [-1/sqrt(fan_in), 1/sqrt(fan_in)), fan_in = in * kernel^1.
  • Constructor Details

    • Conv1d

      public Conv1d(int in, int out, int kernel, int stride, int padding, int dilation, boolean bias, long seed)
      A 1-D convolution from in to out channels, initialised from seed.
    • Conv1d

      public Conv1d(int in, int out, int kernel, int stride, int padding, int dilation, int groups, boolean bias, long seed)
      With groups groups of in / groups input channels each (fan_in = in / groups * kernel^1).
  • Method Details

    • weight

      public Tensor weight()
      The weight [out, in, kernel].
    • forward

      public Tensor forward(Tensor x)
      Description copied from class: Module
      Applies the module to x.
      Specified by:
      forward in class Module