Class MPSMatrixBatchNormalizationGradient

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol

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

    • MPSMatrixBatchNormalizationGradient

      public MPSMatrixBatchNormalizationGradient()
    • MPSMatrixBatchNormalizationGradient

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

      protected MPSMatrixBatchNormalizationGradient​(NSObject.SkipInit skipInit)
    • MPSMatrixBatchNormalizationGradient

      public MPSMatrixBatchNormalizationGradient​(MTLDevice device)
    • MPSMatrixBatchNormalizationGradient

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

      public MPSMatrixBatchNormalizationGradient​(NSCoder coder)
  • Method Details

    • getSourceNumberOfFeatureVectors

      public long getSourceNumberOfFeatureVectors()
    • setSourceNumberOfFeatureVectors

      public void setSourceNumberOfFeatureVectors​(long v)
    • getSourceInputFeatureChannels

      public long getSourceInputFeatureChannels()
    • setSourceInputFeatureChannels

      public void setSourceInputFeatureChannels​(long v)
    • getEpsilon

      public float getEpsilon()
    • setEpsilon

      public void setEpsilon​(float 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()
    • init

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

      public void encode​(MTLCommandBuffer commandBuffer, MPSMatrix gradientMatrix, MPSMatrix inputMatrix, MPSVector meanVector, MPSVector varianceVector, MPSVector gammaVector, MPSVector betaVector, MPSMatrix resultGradientForDataMatrix, MPSVector resultGradientForGammaVector, MPSVector resultGradientForBetaVector)
    • init

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

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