Class MPSCNNYOLOLoss

    • Constructor Detail

      • MPSCNNYOLOLoss

        protected MPSCNNYOLOLoss​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • anchorBoxes

        public NSData anchorBoxes()
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • encodeToCommandBufferSourceImageLabels

        public MPSImage encodeToCommandBufferSourceImageLabels​(MTLCommandBuffer commandBuffer,
                                                               MPSImage sourceImage,
                                                               MPSCNNLossLabels labels)
        Encode a MPSCNNLoss filter and return a gradient. This -encode call is similar to the encodeToCommandBuffer:sourceImage:labels:destinationImage: above, except that it creates and returns the MPSImage with the loss gradient result.
        Parameters:
        commandBuffer - The MTLCommandBuffer on which to encode.
        sourceImage - The source image from the previous filter in the graph (in the inference direction).
        labels - The object containing the target data (labels) and optionally, weights for the labels.
        Returns:
        The MPSImage containing the gradient result.
      • encodeToCommandBufferSourceImageLabelsDestinationImage

        public void encodeToCommandBufferSourceImageLabelsDestinationImage​(MTLCommandBuffer commandBuffer,
                                                                           MPSImage sourceImage,
                                                                           MPSCNNLossLabels labels,
                                                                           MPSImage destinationImage)
        Encode a MPSCNNYOLOLoss filter and return a gradient in the destinationImage. This filter consumes the output of a previous layer and the MPSCNNLossLabels object containing the target data (labels) and optionally, weights for the labels. The destinationImage contains the computed gradient for the loss layer. It serves as a source gradient input image to the first gradient layer (in the backward direction). For information on the data-layout see @ref MPSCNNYOLOLossDescriptor.
        Parameters:
        commandBuffer - The MTLCommandBuffer on which to encode.
        sourceImage - The source image from the previous filter in the graph (in the inference direction).
        labels - The object containing the target data (labels) and optionally, weights for the labels.
        destinationImage - The MPSImage into which to write the gradient result.
      • hash_static

        public static long hash_static()
      • initWithCoderDevice

        public MPSCNNYOLOLoss initWithCoderDevice​(NSCoder aDecoder,
                                                  java.lang.Object device)
        support
        Overrides:
        initWithCoderDevice in class MPSCNNKernel
        Parameters:
        aDecoder - The NSCoder subclass with your serialized MPSKernel
        device - The MTLDevice on which to make the MPSKernel
        Returns:
        A new MPSKernel object, or nil if failure.
      • initWithDevice

        public MPSCNNYOLOLoss initWithDevice​(java.lang.Object device)
        Description copied from class: MPSCNNKernel
        Standard init with default properties per filter type
        Overrides:
        initWithDevice in class MPSCNNKernel
        Parameters:
        device - The device that the filter will be used on. May not be NULL.
        Returns:
        A pointer to the newly initialized object. This will fail, returning nil if the device is not supported. Devices must be MTLFeatureSet_iOS_GPUFamily2_v1 or later.
      • initWithDeviceLossDescriptor

        public MPSCNNYOLOLoss initWithDeviceLossDescriptor​(MTLDevice device,
                                                           MPSCNNYOLOLossDescriptor lossDescriptor)
        Initialize the loss filter with a loss descriptor.
        Parameters:
        device - The device the filter will run on.
        lossDescriptor - The loss descriptor.
        Returns:
        A valid MPSCNNLoss object or nil, if failure.
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • lossClasses

        public MPSCNNLoss lossClasses()
        [@property] lossClasses loss filter for prediction of bounding box predicted class of the detected object
      • lossConfidence

        public MPSCNNLoss lossConfidence()
        [@property] lossConfidence loss filter for prediction of bounding box probability of presence of object
      • lossWH

        public MPSCNNLoss lossWH()
        [@property] lossWH loss filter for prediction of bounding box size
      • lossXY

        public MPSCNNLoss lossXY()
        [@property] lossXY loss filter for prediction of bounding box position
      • maxIOUForObjectAbsence

        public float maxIOUForObjectAbsence()
      • minIOUForObjectPresence

        public float minIOUForObjectPresence()
      • new_objc

        public static java.lang.Object new_objc()
      • numberOfAnchorBoxes

        public long numberOfAnchorBoxes()
      • reductionType

        public int reductionType()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • scaleClass

        public float scaleClass()
      • scaleNoObject

        public float scaleNoObject()
      • scaleObject

        public float scaleObject()
      • scaleWH

        public float scaleWH()
      • scaleXY

        public float scaleXY()
        See MPSCNNYOLOLossDescriptor for information about the following properties.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
        Overrides:
        _supportsSecureCoding in class MPSCNNKernel
      • version_static

        public static long version_static()
      • reduceAcrossBatch

        public boolean reduceAcrossBatch()