Class MPSMatrixBatchNormalization

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol

public class MPSMatrixBatchNormalization
extends MPSMatrixUnaryKernel
Since:
Available in iOS 12.0 and later.
  • Constructor Details

    • MPSMatrixBatchNormalization

      public MPSMatrixBatchNormalization()
    • MPSMatrixBatchNormalization

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

      protected MPSMatrixBatchNormalization​(NSObject.SkipInit skipInit)
    • MPSMatrixBatchNormalization

      public MPSMatrixBatchNormalization​(MTLDevice device)
    • MPSMatrixBatchNormalization

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

      public MPSMatrixBatchNormalization​(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)
    • isComputeStatistics

      public boolean isComputeStatistics()
    • setComputeStatistics

      public void setComputeStatistics​(boolean 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 inputMatrix, MPSVector meanVector, MPSVector varianceVector, MPSVector gammaVector, MPSVector betaVector, MPSMatrix resultMatrix)
    • init

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

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