Class MPSNNReshape

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol

public class MPSNNReshape
extends MPSCNNKernel
Since:
Available in iOS 11.3 and later.
  • Constructor Details

    • MPSNNReshape

      public MPSNNReshape()
    • MPSNNReshape

      protected MPSNNReshape​(NSObject.Handle h, long handle)
    • MPSNNReshape

      protected MPSNNReshape​(NSObject.SkipInit skipInit)
    • MPSNNReshape

      public MPSNNReshape​(MTLDevice device)
    • MPSNNReshape

      public MPSNNReshape​(NSCoder decoder, MTLDevice device)
    • MPSNNReshape

      public MPSNNReshape​(NSCoder coder)
  • Method Details

    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • init

      protected long init​(MTLDevice device)
      Overrides:
      init in class MPSCNNKernel
    • init

      protected long init​(NSCoder decoder, MTLDevice device)
      Overrides:
      init in class MPSCNNKernel
    • encodeToCommandBuffer

      public MPSImage encodeToCommandBuffer​(MTLCommandBuffer commandBuffer, MPSImage sourceImage, long reshapedWidth, long reshapedHeight, long reshapedFeatureChannels)
      Since:
      Available in iOS 14.0 and later.
    • encodeToCommandBuffer

      public MPSImage encodeToCommandBuffer​(MTLCommandBuffer commandBuffer, MPSImage sourceImage, MPSState.MPSStatePtr outState, boolean isTemporary, long reshapedWidth, long reshapedHeight, long reshapedFeatureChannels)
      Since:
      Available in iOS 14.0 and later.
    • encodeBatchToCommandBuffer

      public NSArray<MPSImage> encodeBatchToCommandBuffer​(MTLCommandBuffer commandBuffer, NSArray<MPSImage> sourceImages, long reshapedWidth, long reshapedHeight, long reshapedFeatureChannels)
      Since:
      Available in iOS 14.0 and later.
    • encodeBatchToCommandBuffer

      public NSArray<MPSImage> encodeBatchToCommandBuffer​(MTLCommandBuffer commandBuffer, NSArray<MPSImage> sourceImages, NSArray.NSArrayPtr<? extends MPSState> outStates, boolean isTemporary, long reshapedWidth, long reshapedHeight, long reshapedFeatureChannels)
      Since:
      Available in iOS 14.0 and later.