Class MPSMatrixSoftMax

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol
Direct Known Subclasses:
MPSMatrixLogSoftMax

public class MPSMatrixSoftMax
extends MPSMatrixUnaryKernel
Since:
Available in iOS 11.0 and later.
  • Constructor Details

    • MPSMatrixSoftMax

      public MPSMatrixSoftMax()
    • MPSMatrixSoftMax

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

      protected MPSMatrixSoftMax​(NSObject.SkipInit skipInit)
    • MPSMatrixSoftMax

      public MPSMatrixSoftMax​(MTLDevice device)
      Since:
      Available in iOS 11.0 and later.
    • MPSMatrixSoftMax

      public MPSMatrixSoftMax​(NSCoder decoder, MTLDevice device)
      Since:
      Available in iOS 11.0 and later.
    • MPSMatrixSoftMax

      public MPSMatrixSoftMax​(NSCoder coder)
  • Method Details

    • getSourceRows

      public long getSourceRows()
    • setSourceRows

      public void setSourceRows​(long v)
    • getSourceColumns

      public long getSourceColumns()
    • setSourceColumns

      public void setSourceColumns​(long v)
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • init

      protected long init​(MTLDevice device)
      Overrides:
      init in class MPSKernel
      Since:
      Available in iOS 11.0 and later.
    • encode

      public void encode​(MTLCommandBuffer commandBuffer, MPSMatrix inputMatrix, MPSMatrix resultMatrix)
    • init

      protected long init​(NSCoder decoder, MTLDevice device)
      Overrides:
      init in class MPSKernel
      Since:
      Available in iOS 11.0 and later.
    • copy

      public MPSMatrixSoftMax copy​(NSZone zone, MTLDevice device)
      Overrides:
      copy in class MPSKernel