Skip to content

Commit 2e1dac7

Browse files
Fix unrecognized selector build warnings in macOS Monterey (#215)
* Fix unrecognized selector build warnings in macOS Monterey * Address PR comments * Remove whitespaces
1 parent 60a3399 commit 2e1dac7

File tree

3 files changed

+58
-0
lines changed

3 files changed

+58
-0
lines changed

aten/src/ATen/native/mps/MPSGraphVenturaOps.h

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,60 @@ typedef NS_ENUM(NSUInteger, MPSGraphResizeNearestRoundingMode)
3333

3434
- (MPSGraphTensor * _Nonnull)inverseOfTensor:(MPSGraphTensor * _Nonnull) inputTensor
3535
name:(NSString * _Nullable)name;
36+
37+
- (MPSGraphTensor * _Nonnull) resizeNearestWithTensor:(MPSGraphTensor * _Nonnull) imagesTensor
38+
sizeTensor:(MPSGraphTensor * _Nonnull) size
39+
nearestRoundingMode:(MPSGraphResizeNearestRoundingMode) nearestRoundingMode
40+
centerResult:(BOOL) centerResult
41+
alignCorners:(BOOL) alignCorners
42+
layout:(MPSGraphTensorNamedDataLayout) layout
43+
name:(NSString * _Nullable) name;
44+
45+
- (MPSGraphTensor * _Nonnull) resizeNearestWithTensor:(MPSGraphTensor * _Nonnull) imagesTensor
46+
sizeTensor:(MPSGraphTensor * _Nonnull) size
47+
scaleOffsetTensor:(MPSGraphTensor * _Nonnull) scaleOffset
48+
nearestRoundingMode:(MPSGraphResizeNearestRoundingMode) nearestRoundingMode
49+
layout:(MPSGraphTensorNamedDataLayout) layout
50+
name:(NSString * _Nullable) name;
51+
52+
- (MPSGraphTensor * _Nonnull) resizeBilinearWithTensor:(MPSGraphTensor * _Nonnull) imagesTensor
53+
sizeTensor:(MPSGraphTensor * _Nonnull) size
54+
centerResult:(BOOL) centerResult
55+
alignCorners:(BOOL) alignCorners
56+
layout:(MPSGraphTensorNamedDataLayout) layout
57+
name:(NSString * _Nullable) name;
58+
59+
- (MPSGraphTensor * _Nonnull) resizeBilinearWithTensor:(MPSGraphTensor * _Nonnull) imagesTensor
60+
sizeTensor:(MPSGraphTensor * _Nonnull) size
61+
scaleOffsetTensor:(MPSGraphTensor * _Nonnull) scaleOffset
62+
layout:(MPSGraphTensorNamedDataLayout) layout
63+
name:(NSString * _Nullable) name;
64+
65+
- (MPSGraphTensor * _Nonnull) resizeNearestWithGradientTensor:(MPSGraphTensor * _Nonnull) gradient
66+
input:(MPSGraphTensor * _Nonnull) input
67+
nearestRoundingMode:(MPSGraphResizeNearestRoundingMode) nearestRoundingMode
68+
centerResult:(BOOL) centerResult
69+
alignCorners:(BOOL) alignCorners
70+
layout:(MPSGraphTensorNamedDataLayout) layout
71+
name:(NSString * _Nullable) name;
72+
73+
- (MPSGraphTensor * _Nonnull) resizeNearestWithGradientTensor:(MPSGraphTensor * _Nonnull) gradient
74+
input:(MPSGraphTensor * _Nonnull) input
75+
scaleOffsetTensor:(MPSGraphTensor * _Nonnull) scaleOffset
76+
nearestRoundingMode:(MPSGraphResizeNearestRoundingMode) nearestRoundingMode
77+
layout:(MPSGraphTensorNamedDataLayout) layout
78+
name:(NSString * _Nullable) name;
79+
80+
- (MPSGraphTensor * _Nonnull) resizeBilinearWithGradientTensor:(MPSGraphTensor * _Nonnull) gradient
81+
input:(MPSGraphTensor * _Nonnull) input
82+
centerResult:(BOOL) centerResult
83+
alignCorners:(BOOL) alignCorners
84+
layout:(MPSGraphTensorNamedDataLayout) layout
85+
name:(NSString * _Nullable) name;
86+
87+
- (MPSGraphTensor * _Nonnull) resizeBilinearWithGradientTensor:(MPSGraphTensor * _Nonnull) gradient
88+
input:(MPSGraphTensor * _Nonnull) input
89+
scaleOffsetTensor:(MPSGraphTensor * _Nonnull) scaleOffset
90+
layout:(MPSGraphTensorNamedDataLayout) layout
91+
name:(NSString * _Nullable) name;
3692
@end

aten/src/ATen/native/mps/operations/Distributions.mm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include <ATen/native/Distributions.h>
44
#include <ATen/native/DistributionTemplates.h>
55
#include <ATen/native/mps/OperationUtils.h>
6+
#include <ATen/native/mps/MPSGraphVenturaOps.h>
67
#include <ATen/mps/MPSGeneratorImpl.h>
78
#include <ATen/native/TensorFactories.h>
89

aten/src/ATen/native/mps/operations/Inverse.mm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include <ATen/ATen.h>
22
#include <ATen/native/mps/OperationUtils.h>
3+
#include <ATen/native/mps/MPSGraphVenturaOps.h>
34
#include <torch/library.h>
45
#include <c10/util/Optional.h>
56

0 commit comments

Comments
 (0)