Class MPSMatrixSum

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol

public class MPSMatrixSum
extends MPSKernel
Since:
Available in iOS 11.0 and later.
  • Constructor Details

    • MPSMatrixSum

      public MPSMatrixSum()
    • MPSMatrixSum

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

      protected MPSMatrixSum​(NSObject.SkipInit skipInit)
    • MPSMatrixSum

      public MPSMatrixSum​(MTLDevice device, long count, long rows, long columns, boolean transpose)
    • MPSMatrixSum

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

      public MPSMatrixSum​(NSCoder coder)
  • Method Details

    • getRows

      public long getRows()
    • getColumns

      public long getColumns()
    • getCount

      public long getCount()
    • isTranspose

      public boolean isTranspose()
    • getResultMatrixOrigin

      public MTLOrigin getResultMatrixOrigin()
    • setResultMatrixOrigin

      public void setResultMatrixOrigin​(MTLOrigin v)
    • getNeuronParameterA

      public float getNeuronParameterA()
    • getNeuronParameterB

      public float getNeuronParameterB()
    • getNeuronParameterC

      public float getNeuronParameterC()
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • init

      protected long init​(MTLDevice device, long count, long rows, long columns, boolean transpose)
    • setNeuronType

      public void setNeuronType​(MPSCNNNeuronType neuronType, float parameterA, float parameterB, float parameterC)
    • neuronType

      public MPSCNNNeuronType neuronType()
    • encode

      public void encode​(MTLCommandBuffer buffer, NSArray<MPSMatrix> sourceMatrices, MPSMatrix resultMatrix, MPSVector scaleVector, MPSVector offsetVector, MPSVector biasVector, long startIndex)
    • init

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