Class MPSGraphDepthwiseConvolution2DOpDescriptor

  • All Implemented Interfaces:
    NSCopying, NSObject

    public class MPSGraphDepthwiseConvolution2DOpDescriptor
    extends MPSGraphObject
    implements NSCopying
    This is a class that defines parameters for a 2d depthwise convolution operation. A `MPSGraphDepthwiseConvolution2DOpDescriptor` defines constant parameters for 2d depthwise convolutions. Use this class with ``MPSGraph/depthwiseConvolution2DWithSourceTensor:weightsTensor:descriptor:name:``, ``MPSGraph/depthwiseConvolution2DDataGradientWithIncomingGradientTensor:weightsTensor:outputShape:descriptor:name:`` and ``MPSGraph/depthwiseConvolution2DWeightsGradientWithIncomingGradientTensor:sourceTensor:outputShape:descriptor:name:`` methods. API-Since: 14.0
    • Constructor Detail

      • MPSGraphDepthwiseConvolution2DOpDescriptor

        protected MPSGraphDepthwiseConvolution2DOpDescriptor​(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()
      • copyWithZone

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

        public long dataLayout()
        The data layout of the input data (in forward pass). See: ``MPSGraphTensorNamedDataLayout``.
      • debugDescription_static

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

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

        public static MPSGraphDepthwiseConvolution2DOpDescriptor descriptorWithDataLayoutWeightsLayout​(long dataLayout,
                                                                                                       long weightsLayout)
        Creates a 2d depthwise convolution descriptor with given properties and default values. - Parameters: - dataLayout: See `dataLayout` property. - weightsLayout: See `weightsLayout` property. - Returns: The descriptor on autoreleasepool.
      • descriptorWithStrideInXStrideInYDilationRateInXDilationRateInYPaddingLeftPaddingRightPaddingTopPaddingBottomPaddingStyleDataLayoutWeightsLayout

        public static MPSGraphDepthwiseConvolution2DOpDescriptor descriptorWithStrideInXStrideInYDilationRateInXDilationRateInYPaddingLeftPaddingRightPaddingTopPaddingBottomPaddingStyleDataLayoutWeightsLayout​(long strideInX,
                                                                                                                                                                                                                 long strideInY,
                                                                                                                                                                                                                 long dilationRateInX,
                                                                                                                                                                                                                 long dilationRateInY,
                                                                                                                                                                                                                 long paddingLeft,
                                                                                                                                                                                                                 long paddingRight,
                                                                                                                                                                                                                 long paddingTop,
                                                                                                                                                                                                                 long paddingBottom,
                                                                                                                                                                                                                 long paddingStyle,
                                                                                                                                                                                                                 long dataLayout,
                                                                                                                                                                                                                 long weightsLayout)
        Creates a 2d depthwise convolution descriptor with given values. - Parameters: - strideInX: See `strideInX` property. - strideInY: See `strideInY` property. - dilationRateInX: See `dilationRateInX` property. - dilationRateInY: See `dilationRateInY` property. - paddingLeft: See `paddingLeft` property. - paddingRight: See `paddingRight` property. - paddingTop: See `paddingTop` property. - paddingBottom: See `paddingBottom` property. - paddingStyle: See `paddingStyle` property. - dataLayout: See `dataLayout` property. - weightsLayout: See `weightsLayout` property. - Returns: The descriptor on autoreleasepool.
      • dilationRateInX

        public long dilationRateInX()
        The dilation rate for X (Width) dimension. Default value: 1.
      • dilationRateInY

        public long dilationRateInY()
        The dilation rate for Y (Height) dimension. Default value: 1.
      • 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)
      • paddingBottom

        public long paddingBottom()
        The explicit padding value for Y (Height) dimension operation adds after the data. Default value: 0.
      • paddingLeft

        public long paddingLeft()
        The explicit padding value for X (Width) dimension the operation adds before the data. Default value: 0.
      • paddingRight

        public long paddingRight()
        The explicit padding value for X (Width) dimension operation adds after the data. Default value: 0.
      • paddingStyle

        public long paddingStyle()
        The padding style for the operation. Default value: `MPSGraphPaddingStyleExplicit`.
      • paddingTop

        public long paddingTop()
        The explicit padding value for Y (Height) dimension operation adds before the data. Default value: 0.
      • resolveClassMethod

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

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

        public void setDataLayout​(long value)
        The data layout of the input data (in forward pass). See: ``MPSGraphTensorNamedDataLayout``.
      • setDilationRateInX

        public void setDilationRateInX​(long value)
        The dilation rate for X (Width) dimension. Default value: 1.
      • setDilationRateInY

        public void setDilationRateInY​(long value)
        The dilation rate for Y (Height) dimension. Default value: 1.
      • setExplicitPaddingWithPaddingLeftPaddingRightPaddingTopPaddingBottom

        public void setExplicitPaddingWithPaddingLeftPaddingRightPaddingTopPaddingBottom​(long paddingLeft,
                                                                                         long paddingRight,
                                                                                         long paddingTop,
                                                                                         long paddingBottom)
        Sets the explicit padding values. Note: this method also sets `paddingStyle` to `MPSGraphPaddingStyleExplicit` (see ``MPSGraphPaddingStyle``). - Parameters: - paddingLeft: See `paddingLeft` property. - paddingRight: See `paddingRight` property. - paddingTop: See `paddingTop` property. - paddingBottom: See `paddingBottom` property.
      • setPaddingBottom

        public void setPaddingBottom​(long value)
        The explicit padding value for Y (Height) dimension operation adds after the data. Default value: 0.
      • setPaddingLeft

        public void setPaddingLeft​(long value)
        The explicit padding value for X (Width) dimension the operation adds before the data. Default value: 0.
      • setPaddingRight

        public void setPaddingRight​(long value)
        The explicit padding value for X (Width) dimension operation adds after the data. Default value: 0.
      • setPaddingStyle

        public void setPaddingStyle​(long value)
        The padding style for the operation. Default value: `MPSGraphPaddingStyleExplicit`.
      • setPaddingTop

        public void setPaddingTop​(long value)
        The explicit padding value for Y (Height) dimension operation adds before the data. Default value: 0.
      • setStrideInX

        public void setStrideInX​(long value)
        The stride for X (Width) dimension. Default value: 1.
      • setStrideInY

        public void setStrideInY​(long value)
        The stride for Y (Height) dimension. Default value: 1.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • setWeightsLayout

        public void setWeightsLayout​(long value)
        The data layout of the weights. NOTE: 'O' index is channel multiplier index. See: ``MPSGraphTensorNamedDataLayout``.
      • strideInX

        public long strideInX()
        The stride for X (Width) dimension. Default value: 1.
      • strideInY

        public long strideInY()
        The stride for Y (Height) dimension. Default value: 1.
      • superclass_static

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

        public static long version_static()
      • weightsLayout

        public long weightsLayout()
        The data layout of the weights. NOTE: 'O' index is channel multiplier index. See: ``MPSGraphTensorNamedDataLayout``.
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.