Class MaxPool2d

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

public final class MaxPool2d extends Module
Max pooling over square windows of NCHW input, PyTorch's nn.MaxPool2d.
  • Constructor Details

    • MaxPool2d

      public MaxPool2d(int kernel)
      Pools non-overlapping kernel x kernel windows (stride kernel, no padding).
    • MaxPool2d

      public MaxPool2d(int kernel, int stride, int padding)
      Pools kernel x kernel windows with the given stride and padding.
  • Method Details