Class MPSMatrixNeuronGradient

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol

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

    • MPSMatrixNeuronGradient

      public MPSMatrixNeuronGradient()
    • MPSMatrixNeuronGradient

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

      protected MPSMatrixNeuronGradient​(NSObject.SkipInit skipInit)
    • MPSMatrixNeuronGradient

      public MPSMatrixNeuronGradient​(MTLDevice device)
    • MPSMatrixNeuronGradient

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

      public MPSMatrixNeuronGradient​(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 gradientMatrix, MPSMatrix inputMatrix, MPSVector biasVector, MPSMatrix resultGradientForDataMatrix, MPSVector resultGradientForBiasVector)
    • init

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

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