Class MPSCNNConvolutionDescriptor

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol
Direct Known Subclasses:
MPSCNNDepthWiseConvolutionDescriptor, MPSCNNSubPixelConvolutionDescriptor

public class MPSCNNConvolutionDescriptor
extends NSObject
implements NSSecureCoding
Since:
Available in iOS 10.0 and later.
  • Constructor Details

    • MPSCNNConvolutionDescriptor

      public MPSCNNConvolutionDescriptor()
    • MPSCNNConvolutionDescriptor

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

      protected MPSCNNConvolutionDescriptor​(NSObject.SkipInit skipInit)
    • MPSCNNConvolutionDescriptor

      public MPSCNNConvolutionDescriptor​(NSCoder coder)
      Since:
      Available in iOS 11.0 and later.
    • MPSCNNConvolutionDescriptor

      @Deprecated public MPSCNNConvolutionDescriptor​(long kernelWidth, long kernelHeight, long inputFeatureChannels, long outputFeatureChannels, MPSCNNNeuron neuronFilter)
      Deprecated.
      Deprecated in iOS 11.0. Use Please use neuronType, neuronParameterA and neuronParameterB properties instead.
      Since:
      Available in iOS 10.0 and later.
    • MPSCNNConvolutionDescriptor

      public MPSCNNConvolutionDescriptor​(long kernelWidth, long kernelHeight, long inputFeatureChannels, long outputFeatureChannels)
      Since:
      Available in iOS 11.0 and later.
  • Method Details

    • getKernelWidth

      public long getKernelWidth()
    • setKernelWidth

      public void setKernelWidth​(long v)
    • getKernelHeight

      public long getKernelHeight()
    • setKernelHeight

      public void setKernelHeight​(long v)
    • getInputFeatureChannels

      public long getInputFeatureChannels()
    • setInputFeatureChannels

      public void setInputFeatureChannels​(long v)
    • getOutputFeatureChannels

      public long getOutputFeatureChannels()
    • setOutputFeatureChannels

      public void setOutputFeatureChannels​(long v)
    • getStrideInPixelsX

      public long getStrideInPixelsX()
    • setStrideInPixelsX

      public void setStrideInPixelsX​(long v)
    • getStrideInPixelsY

      public long getStrideInPixelsY()
    • setStrideInPixelsY

      public void setStrideInPixelsY​(long v)
    • getGroups

      public long getGroups()
    • setGroups

      public void setGroups​(long v)
    • getDilationRateX

      public long getDilationRateX()
    • setDilationRateX

      public void setDilationRateX​(long v)
    • getDilationRateY

      public long getDilationRateY()
    • setDilationRateY

      public void setDilationRateY​(long v)
    • getFusedNeuronDescriptor

      public MPSNNNeuronDescriptor getFusedNeuronDescriptor()
      Since:
      Available in iOS 11.3 and later.
    • setFusedNeuronDescriptor

      public void setFusedNeuronDescriptor​(MPSNNNeuronDescriptor v)
      Since:
      Available in iOS 11.3 and later.
    • getNeuron

      @Deprecated public MPSCNNNeuron getNeuron()
      Deprecated.
      Deprecated in iOS 11.0. Use A MPSCNNNeuron:MPSKernel is much too heavy an object to represent what is a type code and two floats. It is deprecated. Please set fusedNeuronDescriptor property instead.
      Since:
      Available in iOS 10.0 and later.
    • setNeuron

      @Deprecated public void setNeuron​(MPSCNNNeuron v)
      Deprecated.
      Deprecated in iOS 11.0. Use A MPSCNNNeuron:MPSKernel is much too heavy an object to represent what is a type code and two floats. It is deprecated. Please set fusedNeuronDescriptor property instead.
      Since:
      Available in iOS 10.0 and later.
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
      Since:
      Available in iOS 11.0 and later.
    • encode

      public void encode​(NSCoder coder)
      Specified by:
      encode in interface NSCoding
      Since:
      Available in iOS 11.0 and later.
    • init

      protected long init​(NSCoder coder)
      Since:
      Available in iOS 11.0 and later.
    • setBatchNormalizationParameters

      public void setBatchNormalizationParameters​(FloatPtr mean, FloatPtr variance, FloatPtr gamma, FloatPtr beta, float epsilon)
      Since:
      Available in iOS 11.0 and later.
    • setNeuronType

      @Deprecated public void setNeuronType​(MPSCNNNeuronType neuronType, float parameterA, float parameterB)
      Deprecated.
      Deprecated in iOS 11.3. Use set fusedNeuronDescriptor property instead
      Since:
      Available in iOS 11.0 and later.
    • neuronType

      @Deprecated public MPSCNNNeuronType neuronType()
      Deprecated.
      Deprecated in iOS 11.3. use fusedNeuronDescriptor property instead
      Since:
      Available in iOS 11.0 and later.
    • neuronParameterA

      @Deprecated public float neuronParameterA()
      Deprecated.
      Deprecated in iOS 11.3. use fusedNeuronDescriptor property instead
      Since:
      Available in iOS 11.0 and later.
    • neuronParameterB

      @Deprecated public float neuronParameterB()
      Deprecated.
      Deprecated in iOS 11.3. use fusedNeuronDescriptor property instead
      Since:
      Available in iOS 11.0 and later.
    • setNeuronToPReLU

      @Deprecated public void setNeuronToPReLU​(NSData A)
      Deprecated.
      Deprecated in iOS 11.3. use fusedNeuronDescriptor property instead
      Since:
      Available in iOS 11.0 and later.
    • create

      @Deprecated protected static long create​(long kernelWidth, long kernelHeight, long inputFeatureChannels, long outputFeatureChannels, MPSCNNNeuron neuronFilter)
      Deprecated.
      Deprecated in iOS 11.0. Use Please use neuronType, neuronParameterA and neuronParameterB properties instead.
      Since:
      Available in iOS 10.0 and later.
    • create

      protected static long create​(long kernelWidth, long kernelHeight, long inputFeatureChannels, long outputFeatureChannels)
      Since:
      Available in iOS 11.0 and later.