Class Pad

All Implemented Interfaces:
AutoCloseable

public final class Pad extends Module
Padding of the spatial axes: constant, reflect or replicate (PyTorch's nn.ConstantPadNd, ReflectionPadNd, ReplicationPadNd).
  • Constructor Details

    • Pad

      public Pad(int[] before, int[] after, F.PadMode mode, float value)
      Pads spatial axis k with before[k] and after[k] elements; value fills in constant mode.
  • Method Details