Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions aten/src/ATen/native/mps/MPSGraphVenturaOps.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,60 @@ typedef NS_ENUM(NSUInteger, MPSGraphResizeNearestRoundingMode)

- (MPSGraphTensor * _Nonnull)inverseOfTensor:(MPSGraphTensor * _Nonnull) inputTensor
name:(NSString * _Nullable)name;

- (MPSGraphTensor * _Nonnull) resizeNearestWithTensor:(MPSGraphTensor * _Nonnull) imagesTensor
sizeTensor:(MPSGraphTensor * _Nonnull) size
nearestRoundingMode:(MPSGraphResizeNearestRoundingMode) nearestRoundingMode
centerResult:(BOOL) centerResult
alignCorners:(BOOL) alignCorners
layout:(MPSGraphTensorNamedDataLayout) layout
name:(NSString * _Nullable) name;

- (MPSGraphTensor * _Nonnull) resizeNearestWithTensor:(MPSGraphTensor * _Nonnull) imagesTensor
sizeTensor:(MPSGraphTensor * _Nonnull) size
scaleOffsetTensor:(MPSGraphTensor * _Nonnull) scaleOffset
nearestRoundingMode:(MPSGraphResizeNearestRoundingMode) nearestRoundingMode
layout:(MPSGraphTensorNamedDataLayout) layout
name:(NSString * _Nullable) name;

- (MPSGraphTensor * _Nonnull) resizeBilinearWithTensor:(MPSGraphTensor * _Nonnull) imagesTensor
sizeTensor:(MPSGraphTensor * _Nonnull) size
centerResult:(BOOL) centerResult
alignCorners:(BOOL) alignCorners
layout:(MPSGraphTensorNamedDataLayout) layout
name:(NSString * _Nullable) name;

- (MPSGraphTensor * _Nonnull) resizeBilinearWithTensor:(MPSGraphTensor * _Nonnull) imagesTensor
sizeTensor:(MPSGraphTensor * _Nonnull) size
scaleOffsetTensor:(MPSGraphTensor * _Nonnull) scaleOffset
layout:(MPSGraphTensorNamedDataLayout) layout
name:(NSString * _Nullable) name;

- (MPSGraphTensor * _Nonnull) resizeNearestWithGradientTensor:(MPSGraphTensor * _Nonnull) gradient
input:(MPSGraphTensor * _Nonnull) input
nearestRoundingMode:(MPSGraphResizeNearestRoundingMode) nearestRoundingMode
centerResult:(BOOL) centerResult
alignCorners:(BOOL) alignCorners
layout:(MPSGraphTensorNamedDataLayout) layout
name:(NSString * _Nullable) name;

- (MPSGraphTensor * _Nonnull) resizeNearestWithGradientTensor:(MPSGraphTensor * _Nonnull) gradient
input:(MPSGraphTensor * _Nonnull) input
scaleOffsetTensor:(MPSGraphTensor * _Nonnull) scaleOffset
nearestRoundingMode:(MPSGraphResizeNearestRoundingMode) nearestRoundingMode
layout:(MPSGraphTensorNamedDataLayout) layout
name:(NSString * _Nullable) name;

- (MPSGraphTensor * _Nonnull) resizeBilinearWithGradientTensor:(MPSGraphTensor * _Nonnull) gradient
input:(MPSGraphTensor * _Nonnull) input
centerResult:(BOOL) centerResult
alignCorners:(BOOL) alignCorners
layout:(MPSGraphTensorNamedDataLayout) layout
name:(NSString * _Nullable) name;

- (MPSGraphTensor * _Nonnull) resizeBilinearWithGradientTensor:(MPSGraphTensor * _Nonnull) gradient
input:(MPSGraphTensor * _Nonnull) input
scaleOffsetTensor:(MPSGraphTensor * _Nonnull) scaleOffset
layout:(MPSGraphTensorNamedDataLayout) layout
name:(NSString * _Nullable) name;
@end
1 change: 1 addition & 0 deletions aten/src/ATen/native/mps/operations/Distributions.mm
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <ATen/native/Distributions.h>
#include <ATen/native/DistributionTemplates.h>
#include <ATen/native/mps/OperationUtils.h>
#include <ATen/native/mps/MPSGraphVenturaOps.h>
#include <ATen/mps/MPSGeneratorImpl.h>
#include <ATen/native/TensorFactories.h>

Expand Down
1 change: 1 addition & 0 deletions aten/src/ATen/native/mps/operations/Inverse.mm
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <ATen/ATen.h>
#include <ATen/native/mps/OperationUtils.h>
#include <ATen/native/mps/MPSGraphVenturaOps.h>
#include <torch/library.h>
#include <c10/util/Optional.h>

Expand Down