Class MPSCNNArithmetic

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol
Direct Known Subclasses:
MPSCNNAdd, MPSCNNDivide, MPSCNNMultiply, MPSCNNSubtract, MPSNNCompare

public class MPSCNNArithmetic
extends MPSCNNBinaryKernel
Since:
Available in iOS 11.3 and later.
  • Constructor Details

    • MPSCNNArithmetic

      public MPSCNNArithmetic()
    • MPSCNNArithmetic

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

      protected MPSCNNArithmetic​(NSObject.SkipInit skipInit)
    • MPSCNNArithmetic

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

      public MPSCNNArithmetic​(NSCoder coder)
  • Method Details

    • getPrimaryScale

      public float getPrimaryScale()
    • setPrimaryScale

      public void setPrimaryScale​(float v)
    • getSecondaryScale

      public float getSecondaryScale()
    • setSecondaryScale

      public void setSecondaryScale​(float v)
    • getBias

      public float getBias()
    • setBias

      public void setBias​(float v)
    • getPrimaryStrideInFeatureChannels

      public long getPrimaryStrideInFeatureChannels()
    • setPrimaryStrideInFeatureChannels

      public void setPrimaryStrideInFeatureChannels​(long v)
    • getSecondaryStrideInFeatureChannels

      public long getSecondaryStrideInFeatureChannels()
    • setSecondaryStrideInFeatureChannels

      public void setSecondaryStrideInFeatureChannels​(long v)
    • getMinimumValue

      public float getMinimumValue()
    • setMinimumValue

      public void setMinimumValue​(float v)
    • getMaximumValue

      public float getMaximumValue()
    • setMaximumValue

      public void setMaximumValue​(float v)
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • encode

      public void encode​(MTLCommandBuffer commandBuffer, MPSImage primaryImage, MPSImage secondaryImage, MPSCNNArithmeticGradientState destinationState, MPSImage destinationImage)
    • encodeBatch

      public void encodeBatch​(MTLCommandBuffer commandBuffer, NSArray<MPSImage> primaryImages, NSArray<MPSImage> secondaryImages, NSArray<MPSCNNArithmeticGradientState> destinationStates, NSArray<MPSImage> destinationImages)