Class MPSCNNDropoutGradientState

  • All Implemented Interfaces:
    NSObject

    public class MPSCNNDropoutGradientState
    extends MPSNNGradientState
    MPSCNNDropoutGradientState [@dependency] This depends on Metal.framework. The MPSCNNDropoutGradientState is used to hold the mask used by both MPSCNNDropout forward filter and MPSCNNDropoutGradient backward filter. The MPSCNNDropout forward filter populates the MPSCNNDropoutGradientState object and the MPSCNNDropoutGradient backward filter consumes the state object. While the mask is stored internally, the mask data is accessible by the user for debugging purposes via an accessor method. API-Since: 11.3
    • Constructor Detail

      • MPSCNNDropoutGradientState

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • automaticallyNotifiesObserversForKey

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

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

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

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

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • 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()
      • initWithDeviceResourceList

        public MPSCNNDropoutGradientState initWithDeviceResourceList​(@NotNull
                                                                     @NotNull MTLDevice device,
                                                                     @NotNull
                                                                     @NotNull MPSStateResourceList resourceList)
        Description copied from class: MPSState
        Initialize a non-temporary state to hold a number of textures and buffers The allocation of each resource will be deferred until it is needed. This occurs when -resource or -resourceAtIndex: is called.
        Overrides:
        initWithDeviceResourceList in class MPSNNGradientState
        resourceList - The list of resources to create. API-Since: 11.3
      • initWithResources

        public MPSCNNDropoutGradientState initWithResources​(@Nullable
                                                            @Nullable NSArray<?> resources)
        Description copied from class: MPSState
        Create a state object with a list of MTLResources Because MPS prefers deferred allocation of resources your application should use -initWithTextures:bufferSizes:bufferCount: whenever possible. This method is useful for cases when the MTLResources must be initialized by the CPU.
        Overrides:
        initWithResources in class MPSNNGradientState
      • 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

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • maskData

        @NotNull
        public @NotNull NSData maskData()
        Mask data accessor method.
        Returns:
        An autoreleased NSData object, containing the mask data. The mask data is populated in the -encode call, thus the contents are undefined until you -encode the filter. Use for debugging purposes only. In order to gaurantee that the mask data is correctly synchronized for CPU side access, it is the application's responsibility to call the [gradientState synchronizeOnCommandBuffer:] method before accessing the mask data.
      • resolveClassMethod

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

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

        public static void setVersion_static​(long aVersion)
      • superclass_static

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

        @NotNull
        public static @NotNull MPSCNNDropoutGradientState temporaryStateWithCommandBufferBufferSize​(@NotNull
                                                                                                    @NotNull MTLCommandBuffer cmdBuf,
                                                                                                    long bufferSize)
      • version_static

        public static long version_static()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.