Skip to content

MetalPerformanceShadersGraph tvOS xcode14.0 beta5

Alex Soto edited this page Aug 8, 2022 · 1 revision

#MetalPerformanceShadersGraph.framework

diff -ruN /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/MetalPerformanceShadersGraph.framework/Headers/MPSGraphTensorShapeOps.h /Applications/Xcode_14.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/MetalPerformanceShadersGraph.framework/Headers/MPSGraphTensorShapeOps.h
--- /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/MetalPerformanceShadersGraph.framework/Headers/MPSGraphTensorShapeOps.h	2022-07-22 10:04:00.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/MetalPerformanceShadersGraph.framework/Headers/MPSGraphTensorShapeOps.h	2022-08-05 16:53:29.000000000 -0400
@@ -49,7 +49,7 @@
 -(MPSGraphTensor *) reshapeTensor:(MPSGraphTensor *) tensor
                   withShapeTensor:(MPSGraphTensor *) shapeTensor
                              name:(NSString * _Nullable) name
-MPS_CLASS_AVAILABLE_STARTING(macos(12.0), ios(15.0), tvos(15.0))
+MPS_AVAILABLE_STARTING(macos(12.0), ios(15.0), tvos(15.0))
 MPS_SWIFT_NAME( reshape(_:shapeTensor:name:) );
 
 -(MPSGraphTensor *) transposeTensor:(MPSGraphTensor *) tensor
@@ -57,6 +57,12 @@
                       withDimension:(NSUInteger) dimensionIndex2
                                name:(NSString * _Nullable) name;
 
+-(MPSGraphTensor *) transposeTensor:(MPSGraphTensor *) tensor
+                        permutation:(NSArray<NSNumber *> *) permutation
+                               name:(NSString * _Nullable) name
+MPS_AVAILABLE_STARTING(macos(13.0), ios(16.0), tvos(16.0))
+MPS_SWIFT_NAME( transpose(_:permutation:name:) );
+
 -(MPSGraphTensor *) sliceTensor:(MPSGraphTensor *) tensor
                       dimension:(NSUInteger) dimensionIndex
                           start:(NSInteger) start
@@ -424,7 +430,7 @@
  */
 -(MPSGraphTensor *)castTensor:(MPSGraphTensor *)tensor
                        toType:(MPSDataType)type
-                         name:(NSString *)name
+                         name:(NSString * _Nullable)name
 MPS_AVAILABLE_STARTING(macos(12.0), ios(15.0), tvos(15.0));
 
 /*!
Clone this wiki locally