Class MPSMatrixNeuron

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol

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

    • MPSMatrixNeuron

      public MPSMatrixNeuron()
    • MPSMatrixNeuron

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

      protected MPSMatrixNeuron​(NSObject.SkipInit skipInit)
    • MPSMatrixNeuron

      public MPSMatrixNeuron​(MTLDevice device)
    • MPSMatrixNeuron

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

      public MPSMatrixNeuron​(NSCoder coder)
  • Method Details

    • getSourceNumberOfFeatureVectors

      public long getSourceNumberOfFeatureVectors()
    • setSourceNumberOfFeatureVectors

      public void setSourceNumberOfFeatureVectors​(long v)
    • getSourceInputFeatureChannels

      public long getSourceInputFeatureChannels()
    • setSourceInputFeatureChannels

      public void setSourceInputFeatureChannels​(long v)
    • getAlpha

      public double getAlpha()
    • setAlpha

      public void setAlpha​(double v)
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • setNeuronType

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

      public MPSCNNNeuronType neuronType()
    • neuronParameterA

      public float neuronParameterA()
    • neuronParameterB

      public float neuronParameterB()
    • neuronParameterC

      public float neuronParameterC()
    • setNeuronToPReLU

      public void setNeuronToPReLU​(NSData A)
    • init

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

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

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

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