Class MPSMatrixSoftMaxGradient

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

public class MPSMatrixSoftMaxGradient
extends MPSMatrixBinaryKernel
Since:
Available in iOS 12.0 and later.
  • Constructor Details

    • MPSMatrixSoftMaxGradient

      public MPSMatrixSoftMaxGradient()
    • MPSMatrixSoftMaxGradient

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

      protected MPSMatrixSoftMaxGradient​(NSObject.SkipInit skipInit)
    • MPSMatrixSoftMaxGradient

      public MPSMatrixSoftMaxGradient​(MTLDevice device)
    • MPSMatrixSoftMaxGradient

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

      public MPSMatrixSoftMaxGradient​(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
    • encode

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

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

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