Class MPSCNNLossDescriptor

All Implemented Interfaces:
NSObjectProtocol, ObjCProtocol

public class MPSCNNLossDescriptor
extends NSObject
Since:
Available in iOS 11.3 and later.
  • Constructor Details

    • MPSCNNLossDescriptor

      protected MPSCNNLossDescriptor()
    • MPSCNNLossDescriptor

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

      protected MPSCNNLossDescriptor​(NSObject.SkipInit skipInit)
    • MPSCNNLossDescriptor

      public MPSCNNLossDescriptor​(MPSCNNLossType lossType, MPSCNNReductionType reductionType)
  • Method Details

    • getLossType

      public MPSCNNLossType getLossType()
    • setLossType

      public void setLossType​(MPSCNNLossType v)
    • getReductionType

      public MPSCNNReductionType getReductionType()
    • setReductionType

      public void setReductionType​(MPSCNNReductionType v)
    • isReduceAcrossBatch

      public boolean isReduceAcrossBatch()
      Since:
      Available in iOS 14.0 and later.
    • setReduceAcrossBatch

      public void setReduceAcrossBatch​(boolean v)
      Since:
      Available in iOS 14.0 and later.
    • getWeight

      public float getWeight()
    • setWeight

      public void setWeight​(float v)
    • getLabelSmoothing

      public float getLabelSmoothing()
    • setLabelSmoothing

      public void setLabelSmoothing​(float v)
    • getNumberOfClasses

      public long getNumberOfClasses()
    • setNumberOfClasses

      public void setNumberOfClasses​(long v)
    • getEpsilon

      public float getEpsilon()
    • setEpsilon

      public void setEpsilon​(float v)
    • getDelta

      public float getDelta()
    • setDelta

      public void setDelta​(float v)
    • create

      protected static long create​(MPSCNNLossType lossType, MPSCNNReductionType reductionType)