11#pragma once
22#include < MetalPerformanceShadersGraph/MetalPerformanceShadersGraph.h>
33
4- @interface unsupported_MPSGraphConvolution3DOpDescriptor : NSObject <NSCopying >
5-
6-
7- @property (readwrite , nonatomic ) NSUInteger strideInX;
8- @property (readwrite , nonatomic ) NSUInteger strideInY;
9- @property (readwrite , nonatomic ) NSUInteger strideInZ;
10- @property (readwrite , nonatomic ) NSUInteger dilationRateInX;
11- @property (readwrite , nonatomic ) NSUInteger dilationRateInY;
12- @property (readwrite , nonatomic ) NSUInteger dilationRateInZ;
13-
14- @property (readwrite , nonatomic ) NSUInteger paddingLeft;
15- @property (readwrite , nonatomic ) NSUInteger paddingRight;
16- @property (readwrite , nonatomic ) NSUInteger paddingTop;
17- @property (readwrite , nonatomic ) NSUInteger paddingBottom;
18- @property (readwrite , nonatomic ) NSUInteger paddingFront;
19- @property (readwrite , nonatomic ) NSUInteger paddingBack;
20-
21- @property (readwrite , nonatomic ) MPSGraphPaddingStyle paddingStyle;
22- @property (readwrite , nonatomic ) MPSGraphTensorNamedDataLayout dataLayout;
23- @property (readwrite , nonatomic ) MPSGraphTensorNamedDataLayout weightsLayout;
24-
25- @property (readwrite , nonatomic ) NSUInteger groups;
26-
27- @end
28-
29- // TODO: Remove me when moved to MacOS 13
30- #if !defined(__MAC_13_0) && \
31- (!defined (MAC_OS_X_VERSION_13_0) || (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_13_0))
32-
33- @compatibility_alias MPSGraphConvolution3DOpDescriptor unsupported_MPSGraphConvolution3DOpDescriptor;
34-
35- #endif
364
375@interface MPSGraph (VenturaOps)
386
@@ -53,6 +21,7 @@ typedef NS_ENUM(NSUInteger, MPSGraphResizeNearestRoundingMode)
5321
5422#endif
5523
24+ #ifdef MAC_OS_VERSION_13_2
5625- (MPSGraphTensor * _Nonnull) convolution3DWithSourceTensor:(MPSGraphTensor * _Nonnull) source
5726 weightsTensor:(MPSGraphTensor * _Nonnull) weights
5827 descriptor:(MPSGraphConvolution3DOpDescriptor * _Nonnull) descriptor
@@ -69,7 +38,7 @@ typedef NS_ENUM(NSUInteger, MPSGraphResizeNearestRoundingMode)
6938 outputShape:(MPSShape * _Nonnull) outputShape
7039 forwardConvolutionDescriptor:(MPSGraphConvolution3DOpDescriptor * _Nonnull) forwardConvolutionDescriptor
7140 name:(NSString * _Nullable) name;
72-
41+ #endif
7342
7443- (MPSGraphTensor * _Nonnull)cumulativeSumWithTensor:(MPSGraphTensor * _Nonnull)tensor
7544 axis:(NSInteger)axis
0 commit comments