Skip to content

MPSNeuralNetwork tvOS xcode13.0 beta1

Sebastien Pouliot edited this page Jun 7, 2021 · 1 revision

#MPSNeuralNetwork.framework

diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSNeuralNetwork.framework/Headers/MPSNNReduce.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSNeuralNetwork.framework/Headers/MPSNNReduce.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSNeuralNetwork.framework/Headers/MPSNNReduce.h	2021-03-16 08:44:01.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSNeuralNetwork.framework/Headers/MPSNNReduce.h	2021-06-02 05:37:25.000000000 -0400
@@ -46,6 +46,13 @@
  */
 @property (readwrite, nonatomic) MTLRegion clipRectSource;
 
+/*!
+ * @discussion Since the clipRectSource replaces the MPSCNNKernel offset parameter for this filter,
+ *             this property is deprecated..
+ */
+@property (readwrite, nonatomic) MPSOffset offset    MPS_AVAILABLE_STARTING_BUT_DEPRECATED( "Please use clipRectSource property instead",
+                                                                                           macos(10.13.4, 10.15), ios(11.3, 13.0), tvos(11.3, 13.0) )  MPS_UNAVAILABLE(macCatalyst);
+
 /*
  * You must use one of the sub-classes of MPSNNReduceUnary.
  */
@@ -470,6 +477,20 @@
  */
 @property (readwrite, nonatomic) MTLRegion secondarySourceClipRect;
 
+/*!
+ * @discussion Since the clipRectSource replaces the MPSCNNKernel offset parameter for this filter,
+ *             this property is deprecated..
+ */
+@property (readwrite, nonatomic) MPSOffset primaryOffset    MPS_AVAILABLE_STARTING_BUT_DEPRECATED( "Please use primarySourceClipRect property instead",
+                                                                                           macos(10.13.4, 10.15), ios(11.3, 13.0), tvos(11.3, 13.0) )  MPS_UNAVAILABLE(macCatalyst);
+
+/*!
+ * @discussion Since the clipRectSource replaces the MPSCNNKernel offset parameter for this filter,
+ *             this property is deprecated..
+ */
+@property (readwrite, nonatomic) MPSOffset secondaryOffset    MPS_AVAILABLE_STARTING_BUT_DEPRECATED( "Please use secondarySourceClipRect property instead",
+                                                                                           macos(10.13.4, 10.15), ios(11.3, 13.0), tvos(11.3, 13.0) )  MPS_UNAVAILABLE(macCatalyst);
+
 /*
  * You must use one of the sub-classes of MPSNNReduceBinary.
  */
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSNeuralNetwork.framework/Headers/MPSNeuralNetworkTypes.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSNeuralNetwork.framework/Headers/MPSNeuralNetworkTypes.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSNeuralNetwork.framework/Headers/MPSNeuralNetworkTypes.h	2021-03-16 13:58:15.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSNeuralNetwork.framework/Headers/MPSNeuralNetworkTypes.h	2021-06-02 05:34:50.000000000 -0400
@@ -295,8 +295,8 @@
  *              from fusing away nodes involving images created by the padding policy because it doesn't know what the
  *              custom padding policy does. If the changes made by the padding policy modify to the MPSImageDescriptor
  *              alone (and not, critically, the MPSKernel properties or image dimensions) then it may be acceptable to pass
- *              MPSNNPaddingMethodCustomWhitelistForNodeFusion, which allows the fusion to proceed even with a custom
- *              padding policy. In usage of MPSNNPaddingMethodCustomWhitelistForNodeFusion, you are guaranteeing to MPS
+ *              MPSNNPaddingMethodCustomAllowForNodeFusion, which allows the fusion to proceed even with a custom
+ *              padding policy. In usage of MPSNNPaddingMethodCustomAllowForNodeFusion, you are guaranteeing to MPS
  *              that it can fuse the node with an adjacent filter node if it can. It makes no further checks.   You can
  *              get a detailed printout of graph optimizations including reasons why they didn't happen by setting the
  *              MPS_LOG_INFO environment variable.
@@ -340,7 +340,8 @@
         MPSNNPaddingMethodSizeSame                      MPS_ENUM_AVAILABLE_STARTING( macos(10.13), ios(11.0), macCatalyst(13.0), tvos(11.0))  = 1UL << 4,        ///< The result is the same size as the input image (before strides)
         MPSNNPaddingMethodSizeFull                      MPS_ENUM_AVAILABLE_STARTING( macos(10.13), ios(11.0), macCatalyst(13.0), tvos(11.0))  = 2UL << 4,        ///< The result is the largest image for which *any* source pixel is valid for result pixels
         MPSNNPaddingMethodSize_reserved                 MPS_ENUM_AVAILABLE_STARTING( macos(10.13), ios(11.0), macCatalyst(13.0), tvos(11.0))  = 3UL << 4,
-        MPSNNPaddingMethodCustomWhitelistForNodeFusion  MPS_ENUM_AVAILABLE_STARTING( macos(10.14), ios(12.0), macCatalyst(13.0), tvos(12.0))  = (1UL << 13),   ///< By itself, MPSNNPaddingMethodCustom will inhibit automatic fusion between nodes producing and consuming the image described by the padding policy. MPSNNPaddingMethodCustomWhitelistForNodeFusion signals that the custom method is benign and fusion may go ahead.
+        MPSNNPaddingMethodCustomWhitelistForNodeFusion  MPS_ENUM_AVAILABLE_STARTING_BUT_DEPRECATED("Use MPSNNPaddingMethodCustomAllowForNodeFusion instead.",  macos(10.14, 12.0), ios(12.0, 15.0), macCatalyst(13.0, 15.0), tvos(12.0, 15.0))  = (1UL << 13),
+        MPSNNPaddingMethodCustomAllowForNodeFusion      MPS_ENUM_AVAILABLE_STARTING( macos(12.0), ios(15.0), macCatalyst(15.0), tvos(15.0))  = (1UL << 13),   ///< By itself, MPSNNPaddingMethodCustom will inhibit automatic fusion between nodes producing and consuming the image described by the padding policy. MPSNNPaddingMethodCustomAllowForNodeFusion signals that the custom method is benign and fusion may go ahead.
         MPSNNPaddingMethodCustom                        MPS_ENUM_AVAILABLE_STARTING( macos(10.13), ios(11.0), macCatalyst(13.0), tvos(11.0))  = (1UL << 14),   ///< Use destinationImageDescriptorForSourceImages:sourceStates:forKernel:suggestedDescriptor: to calculate padding and offset.
         MPSNNPaddingMethodSizeMask                      MPS_ENUM_AVAILABLE_STARTING( macos(10.13), ios(11.0), macCatalyst(13.0), tvos(11.0))  = 0x7f0,
 
Clone this wiki locally