Class MPSCNNLossDataDescriptor

  • All Implemented Interfaces:
    NSCopying, NSObject

    public class MPSCNNLossDataDescriptor
    extends NSObject
    implements NSCopying
    MPSCNNLossDataDescriptor [@dependency] This depends on Metal.framework. The MPSCNNLossDataDescriptor specifies a loss data descriptor. The same descriptor can be used to initialize both the labels and the optional weights data.
    • Constructor Detail

      • MPSCNNLossDataDescriptor

        protected MPSCNNLossDataDescriptor​(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)
      • automaticallyNotifiesObserversForKey

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

        public long bytesPerImage()
        [@property] bytesPerImage Slice bytes of loss data. This parameter specifies the slice bytes of loss data.
      • bytesPerRow

        public long bytesPerRow()
        [@property] bytesPerRow Row bytes of loss data. This parameter specifies the row bytes of loss data.
      • 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()
      • cnnLossDataDescriptorWithDataLayoutSize

        public static MPSCNNLossDataDescriptor cnnLossDataDescriptorWithDataLayoutSize​(NSData data,
                                                                                       long layout,
                                                                                       MTLSize size)
        Make a descriptor loss data. The bytesPerRow and bytesPerImage are automatically calculated assuming a dense array. If it is not a dense array, adjust bytesPerRow and bytesPerImage to the right value by changing properties.
        Parameters:
        data - The per-element loss data. The data must be in floating point format.
        layout - The data layout of loss data.
        size - The size of loss data.
        Returns:
        A valid MPSCNNLossDataDescriptor object or nil, if failure.
      • copyWithZone

        public java.lang.Object copyWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • debugDescription_static

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

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

        public static long hash_static()
      • 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)
      • layout

        public long layout()
        [@property] layout Data layout of loss data. See MPSImage.h for more information. This parameter specifies the layout of loss data.
      • new_objc

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

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

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

        public void setBytesPerImage​(long value)
        [@property] bytesPerImage Slice bytes of loss data. This parameter specifies the slice bytes of loss data.
      • setBytesPerRow

        public void setBytesPerRow​(long value)
        [@property] bytesPerRow Row bytes of loss data. This parameter specifies the row bytes of loss data.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • size

        public MTLSize size()
        [@property] size Size of loss data: (width, height, feature channels}. This parameter specifies the size of loss data.
      • superclass_static

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

        public static long version_static()