Class MPSGraphStencilOpDescriptor

  • All Implemented Interfaces:
    NSCopying, NSObject

    public class MPSGraphStencilOpDescriptor
    extends MPSGraphObject
    implements NSCopying
    This class defines parameters for a stencil operation. Use this descriptor with the following ``MPSGraph`` methods: - ``MPSGraph/stencilWithSourceTensor:weightsTensor:descriptor:name:``. API-Since: 15.0
    • Constructor Detail

      • MPSGraphStencilOpDescriptor

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • automaticallyNotifiesObserversForKey

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

        public long boundaryMode()
        The property that determines which values to use for padding the input tensor. Default value: `MPSGraphPaddingModeZero`.
      • 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()
      • copyWithZone

        @NotNull
        public @NotNull java.lang.Object copyWithZone​(@Nullable
                                                      @Nullable 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()
      • descriptorWithPaddingStyle

        public static MPSGraphStencilOpDescriptor descriptorWithPaddingStyle​(long paddingStyle)
        Creates a stencil operation descriptor with default values. - Parameters: - paddingStyle: See `paddingStyle` property. - Returns: A valid MPSGraphStencilOpDescriptor object
      • 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

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

        public float paddingConstant()
        The padding value for `boundaryMode = MPSGraphPaddingModeConstant`. Default value: 0.
      • paddingStyle

        public long paddingStyle()
        The property that defines what kind of padding to apply to the stencil operation. Default value: `MPSGraphPaddingStyleExplicit`.
      • reductionMode

        public long reductionMode()
        The reduction mode to use within the stecil window. Default value: `MPSGraphReductionModeSum`.
      • resolveClassMethod

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

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

        public void setBoundaryMode​(long value)
        The property that determines which values to use for padding the input tensor. Default value: `MPSGraphPaddingModeZero`.
      • setPaddingConstant

        public void setPaddingConstant​(float value)
        The padding value for `boundaryMode = MPSGraphPaddingModeConstant`. Default value: 0.
      • setPaddingStyle

        public void setPaddingStyle​(long value)
        The property that defines what kind of padding to apply to the stencil operation. Default value: `MPSGraphPaddingStyleExplicit`.
      • setReductionMode

        public void setReductionMode​(long value)
        The reduction mode to use within the stecil window. Default value: `MPSGraphReductionModeSum`.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

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

        public static long version_static()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.