Skip to content

MetalPerformanceShadersGraph iOS xcode13.0 beta3

Manuel de la Pena edited this page Jul 18, 2021 · 1 revision

#MetalPerformanceShadersGraph.framework

diff -ruN /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/MetalPerformanceShadersGraph.framework/Headers/MPSGraph.h /Applications/Xcode_13.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/MetalPerformanceShadersGraph.framework/Headers/MPSGraph.h
--- /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/MetalPerformanceShadersGraph.framework/Headers/MPSGraph.h	2021-06-17 14:33:25.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/MetalPerformanceShadersGraph.framework/Headers/MPSGraph.h	2021-07-13 00:41:08.000000000 -0400
@@ -38,10 +38,12 @@
 
 /*! @abstract   A dictionary of tensors and correspondiing tensorData for them
  */
+MPS_AVAILABLE_STARTING(macos(11.0), ios(14.0), tvos(14.0))
 typedef NSDictionary<MPSGraphTensor*, MPSGraphTensorData *> MPSGraphTensorDataDictionary;
 
 /*! @abstract   A dictionary of tensors and correspondiing shapes for them
  */
+MPS_AVAILABLE_STARTING(macos(11.0), ios(14.0), tvos(14.0))
 typedef NSDictionary<MPSGraphTensor*, MPSGraphShapedType *> MPSGraphTensorShapedTypeDictionary;
 
 /*! @abstract   A notification when graph execution: has finished
@@ -141,7 +143,7 @@
                                     feeds:(MPSGraphTensorShapedTypeDictionary *) feeds
                             targetTensors:(NSArray<MPSGraphTensor *> *) targetTensors
                          targetOperations:(NSArray<MPSGraphOperation *> * _Nullable) targetOperations
-                    compilationDescriptor:(MPSGraphCompilationDescriptor * _Nullable) compilationDescriptor;
+                    compilationDescriptor:(MPSGraphCompilationDescriptor * _Nullable) compilationDescriptor MPS_AVAILABLE_STARTING(macos(12.0), ios(15.0), tvos(15.0));
 
 /*!
  *  @abstract   Runs the graph for given feeds to return targetTensor values, ensuring all target operations also executed. This call blocks till execution has completed.
diff -ruN /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/MetalPerformanceShadersGraph.framework/Headers/MPSGraphArithmeticOps.h /Applications/Xcode_13.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/MetalPerformanceShadersGraph.framework/Headers/MPSGraphArithmeticOps.h
--- /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/MetalPerformanceShadersGraph.framework/Headers/MPSGraphArithmeticOps.h	2021-06-22 17:33:44.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/MetalPerformanceShadersGraph.framework/Headers/MPSGraphArithmeticOps.h	2021-07-13 00:33:45.000000000 -0400
@@ -257,6 +257,43 @@
                                         name:(NSString * _Nullable) name
 MPS_SWIFT_NAME( maximum(_:_:name:) );
 
+/*!
+ *  @abstract   Create Minimum op and return the result tensor, it supports broadcasting as well. If any of the operands is NaN, NaN is returned
+ *
+ *  @code
+ *              resultTensor = isNaN(primaryTensor) || isNan(secondaryTensor) ? NaN : min(primaryTensor, secondaryTensor)
+ *  @endcode
+ *
+ *  @param      primaryTensor          LHS tensor of the binary Op
+ *  @param      secondaryTensor      RHS tensor of the binary Op
+ *  @param      name                              name for the operation
+ *
+ *  @return     A valid MPSGraphTensor object.
+ */
+-(MPSGraphTensor *) minimumWithNaNPropagationWithPrimaryTensor:(MPSGraphTensor *) primaryTensor
+                                               secondaryTensor:(MPSGraphTensor *) secondaryTensor
+                                                          name:(NSString * _Nullable) name
+                                                MPS_SWIFT_NAME( minimumWithNaNPropagation(_:_:name:) )
+                                                MPS_AVAILABLE_STARTING(macos(12.0), ios(15.0), tvos(15.0));
+
+/*!
+ *  @abstract   Create Maximum op and return the result tensor, it supports broadcasting as well. If any of the operands is NaN, NaN is returned
+ *
+ *  @code
+ *              resultTensor = isNaN(primaryTensor) || isNan(secondaryTensor) ? NaN : max(primaryTensor, secondaryTensor)
+ *  @endcode
+ *
+ *  @param      primaryTensor          LHS tensor of the binary Op
+ *  @param      secondaryTensor      RHS tensor of the binary Op
+ *  @param      name                              name for the operation
+ *
+ *  @return     A valid MPSGraphTensor object.
+ */
+-(MPSGraphTensor *) maximumWithNaNPropagationWithPrimaryTensor:(MPSGraphTensor *) primaryTensor
+                                               secondaryTensor:(MPSGraphTensor *) secondaryTensor
+                                                          name:(NSString * _Nullable) name
+                                                MPS_SWIFT_NAME( maximumWithNaNPropagation(_:_:name:) )
+                                                MPS_AVAILABLE_STARTING(macos(12.0), ios(15.0), tvos(15.0));
 
 
 -(MPSGraphTensor *) equalWithPrimaryTensor:(MPSGraphTensor *) primaryTensor
diff -ruN /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/MetalPerformanceShadersGraph.framework/Headers/MPSGraphExecutable.h /Applications/Xcode_13.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/MetalPerformanceShadersGraph.framework/Headers/MPSGraphExecutable.h
--- /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/MetalPerformanceShadersGraph.framework/Headers/MPSGraphExecutable.h	2021-06-17 03:43:28.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/MetalPerformanceShadersGraph.framework/Headers/MPSGraphExecutable.h	2021-07-13 00:41:06.000000000 -0400
@@ -17,6 +17,7 @@
  *  @param      results  If no error, the results produced by the graph operation.
  *  @param      error   If an error occurs, more information might be found here.
  */
+MPS_AVAILABLE_STARTING(macos(12.0), ios(15.0), tvos(15.0))
 typedef void (^MPSGraphExecutableCompletionHandler)(NSArray<MPSGraphTensorData *> * results,
                                                     NSError * _Nullable error);
 
@@ -24,6 +25,7 @@
  *  @param      results  If no error, the results produced by the graph operation.
  *  @param      error   If an error occurs, more information might be found here.
  */
+MPS_AVAILABLE_STARTING(macos(12.0), ios(15.0), tvos(15.0))
 typedef void (^MPSGraphExecutableScheduledHandler)(NSArray<MPSGraphTensorData *> * results,
                                                    NSError * _Nullable error);
 
Clone this wiki locally