pyobjc-framework-MetalPerformanceShadersGraph 9.2__tar.gz → 10.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. pyobjc-framework-MetalPerformanceShadersGraph-10.1/Lib/MetalPerformanceShadersGraph/__init__.py +34 -0
  2. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/Lib/MetalPerformanceShadersGraph/_metadata.py +58 -7
  3. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/Lib/pyobjc_framework_MetalPerformanceShadersGraph.egg-info/PKG-INFO +6 -3
  4. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/Lib/pyobjc_framework_MetalPerformanceShadersGraph.egg-info/SOURCES.txt +5 -1
  5. pyobjc-framework-MetalPerformanceShadersGraph-10.1/Lib/pyobjc_framework_MetalPerformanceShadersGraph.egg-info/requires.txt +2 -0
  6. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/PKG-INFO +6 -3
  7. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/PyObjCTest/test_MPSGraphExecutable.py +19 -0
  8. pyobjc-framework-MetalPerformanceShadersGraph-10.1/PyObjCTest/test_mpsgraphfouriertransformops.py +28 -0
  9. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/PyObjCTest/test_mpsgraphlossops.py +5 -1
  10. pyobjc-framework-MetalPerformanceShadersGraph-10.1/PyObjCTest/test_mpsgraphnonmaximumsuppressionops.py +37 -0
  11. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/PyObjCTest/test_mpsgraphresizeops.py +29 -0
  12. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/PyObjCTest/test_mpsgraphtensorshapeops.py +7 -4
  13. pyobjc-framework-MetalPerformanceShadersGraph-10.1/metadata/raw/arm64-14.0.fwinfo +17626 -0
  14. pyobjc-framework-MetalPerformanceShadersGraph-10.1/metadata/raw/x86_64-14.0.fwinfo +17626 -0
  15. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/pyobjc_setup.py +16 -6
  16. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/setup.py +1 -1
  17. pyobjc-framework-MetalPerformanceShadersGraph-9.2/Lib/MetalPerformanceShadersGraph/__init__.py +0 -32
  18. pyobjc-framework-MetalPerformanceShadersGraph-9.2/Lib/pyobjc_framework_MetalPerformanceShadersGraph.egg-info/requires.txt +0 -2
  19. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/Lib/pyobjc_framework_MetalPerformanceShadersGraph.egg-info/dependency_links.txt +0 -0
  20. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/Lib/pyobjc_framework_MetalPerformanceShadersGraph.egg-info/not-zip-safe +0 -0
  21. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/Lib/pyobjc_framework_MetalPerformanceShadersGraph.egg-info/top_level.txt +0 -0
  22. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/License.txt +0 -0
  23. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/MANIFEST.in +0 -0
  24. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/PyObjCTest/__init__.py +0 -0
  25. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/PyObjCTest/test_metalperformanceshadersgraph.py +0 -0
  26. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/PyObjCTest/test_mpsgraph.py +0 -0
  27. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/PyObjCTest/test_mpsgraphcontrolflowops.py +0 -0
  28. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/PyObjCTest/test_mpsgraphcore.py +0 -0
  29. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/PyObjCTest/test_mpsgraphcumulativeops.py +0 -0
  30. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/PyObjCTest/test_mpsgraphdevice.py +0 -0
  31. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/PyObjCTest/test_mpsgraphpoolingops.py +0 -0
  32. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/PyObjCTest/test_mpsgraphrandomops.py +0 -0
  33. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/PyObjCTest/test_mpsgraphrnnops.py +0 -0
  34. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/PyObjCTest/test_mpsgraphsamplegridops.py +0 -0
  35. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/PyObjCTest/test_mpsgraphscatterndops.py +0 -0
  36. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/PyObjCTest/test_mpsgraphsortops.py +0 -0
  37. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/PyObjCTest/test_mpsgraphsparseops.py +0 -0
  38. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/metadata/MetalPerformanceShadersGraph.fwinfo +0 -0
  39. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/metadata/metadata.ini +0 -0
  40. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/metadata/raw/arm64-12.1.fwinfo +0 -0
  41. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/metadata/raw/arm64-12.3.fwinfo +0 -0
  42. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/metadata/raw/arm64-13.0.fwinfo +0 -0
  43. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/metadata/raw/arm64-13.3.fwinfo +0 -0
  44. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/metadata/raw/x86_64-10.16.fwinfo +0 -0
  45. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/metadata/raw/x86_64-12.1.fwinfo +0 -0
  46. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/metadata/raw/x86_64-12.3.fwinfo +0 -0
  47. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/metadata/raw/x86_64-13.0.fwinfo +0 -0
  48. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/metadata/raw/x86_64-13.3.fwinfo +0 -0
  49. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/pyproject.toml +0 -0
  50. {pyobjc-framework-MetalPerformanceShadersGraph-9.2 → pyobjc-framework-MetalPerformanceShadersGraph-10.1}/setup.cfg +0 -0
@@ -0,0 +1,34 @@
1
+ """
2
+ Python mapping for the MetalPerformanceShadersGraph framework.
3
+
4
+ This module does not contain docstrings for the wrapped code, check Apple's
5
+ documentation for details on how to use these functions and classes.
6
+ """
7
+
8
+
9
+ def _setup():
10
+ import sys
11
+
12
+ import MetalPerformanceShaders
13
+ import objc
14
+ from . import _metadata
15
+
16
+ dir_func, getattr_func = objc.createFrameworkDirAndGetattr(
17
+ name="MetalPerformanceShadersGraph",
18
+ frameworkIdentifier="com.apple.MetalPerformanceShadersGraph",
19
+ frameworkPath=objc.pathForFramework(
20
+ "/System/Library/Frameworks/MetalPerformanceShadersGraph.framework"
21
+ ),
22
+ globals_dict=globals(),
23
+ inline_list=None,
24
+ parents=(MetalPerformanceShaders,),
25
+ metadict=_metadata.__dict__,
26
+ )
27
+
28
+ globals()["__dir__"] = dir_func
29
+ globals()["__getattr__"] = getattr_func
30
+
31
+ del sys.modules["MetalPerformanceShadersGraph._metadata"]
32
+
33
+
34
+ globals().pop("_setup")()
@@ -1,6 +1,6 @@
1
1
  # This file is generated by objective.metadata
2
2
  #
3
- # Last update: Sat Feb 18 13:12:14 2023
3
+ # Last update: Sat Jul 1 14:01:14 2023
4
4
  #
5
5
  # flake8: noqa
6
6
 
@@ -31,21 +31,26 @@ else:
31
31
 
32
32
  misc = {}
33
33
  constants = """$$"""
34
- enums = """$MPSGraphDeviceTypeMetal@0$MPSGraphExecutionStageCompleted@0$MPSGraphLossReductionTypeAxis@0$MPSGraphLossReductionTypeMean@2$MPSGraphLossReductionTypeSum@1$MPSGraphOptimizationLevel0@0$MPSGraphOptimizationLevel1@1$MPSGraphOptimizationProfilePerformance@0$MPSGraphOptimizationProfilePowerEfficiency@1$MPSGraphOptionsDefault@1$MPSGraphOptionsNone@0$MPSGraphOptionsSynchronizeResults@1$MPSGraphOptionsVerbose@2$MPSGraphPaddingModeAntiPeriodic@6$MPSGraphPaddingModeClampToEdge@3$MPSGraphPaddingModeConstant@0$MPSGraphPaddingModePeriodic@5$MPSGraphPaddingModeReflect@1$MPSGraphPaddingModeSymmetric@2$MPSGraphPaddingModeZero@4$MPSGraphPaddingStyleExplicit@0$MPSGraphPaddingStyleExplicitOffset@3$MPSGraphPaddingStyleONNX_SAME_LOWER@4$MPSGraphPaddingStyleTF_SAME@2$MPSGraphPaddingStyleTF_VALID@1$MPSGraphPoolingReturnIndicesGlobalFlatten1D@1$MPSGraphPoolingReturnIndicesGlobalFlatten2D@2$MPSGraphPoolingReturnIndicesGlobalFlatten3D@3$MPSGraphPoolingReturnIndicesGlobalFlatten4D@4$MPSGraphPoolingReturnIndicesLocalFlatten1D@5$MPSGraphPoolingReturnIndicesLocalFlatten2D@6$MPSGraphPoolingReturnIndicesLocalFlatten3D@7$MPSGraphPoolingReturnIndicesLocalFlatten4D@8$MPSGraphPoolingReturnIndicesNone@0$MPSGraphRNNActivationHardSigmoid@4$MPSGraphRNNActivationNone@0$MPSGraphRNNActivationRelu@1$MPSGraphRNNActivationSigmoid@3$MPSGraphRNNActivationTanh@2$MPSGraphRandomDistributionNormal@1$MPSGraphRandomDistributionTruncatedNormal@2$MPSGraphRandomDistributionUniform@0$MPSGraphRandomNormalSamplingBoxMuller@1$MPSGraphRandomNormalSamplingInvCDF@0$MPSGraphReductionModeArgumentMax@5$MPSGraphReductionModeArgumentMin@4$MPSGraphReductionModeMax@1$MPSGraphReductionModeMin@0$MPSGraphReductionModeProduct@3$MPSGraphReductionModeSum@2$MPSGraphResizeBilinear@1$MPSGraphResizeNearest@0$MPSGraphResizeNearestRoundingModeCeil@2$MPSGraphResizeNearestRoundingModeFloor@3$MPSGraphResizeNearestRoundingModeRoundPreferCeil@0$MPSGraphResizeNearestRoundingModeRoundPreferFloor@1$MPSGraphResizeNearestRoundingModeRoundToEven@4$MPSGraphResizeNearestRoundingModeRoundToOdd@5$MPSGraphScatterModeAdd@0$MPSGraphScatterModeDiv@3$MPSGraphScatterModeMax@5$MPSGraphScatterModeMin@4$MPSGraphScatterModeMul@2$MPSGraphScatterModeSet@6$MPSGraphScatterModeSub@1$MPSGraphSparseStorageCOO@0$MPSGraphSparseStorageCSC@1$MPSGraphSparseStorageCSR@2$MPSGraphTensorNamedDataLayoutCHW@4$MPSGraphTensorNamedDataLayoutDHWIO@10$MPSGraphTensorNamedDataLayoutHW@6$MPSGraphTensorNamedDataLayoutHWC@5$MPSGraphTensorNamedDataLayoutHWIO@3$MPSGraphTensorNamedDataLayoutNCDHW@7$MPSGraphTensorNamedDataLayoutNCHW@0$MPSGraphTensorNamedDataLayoutNDHWC@8$MPSGraphTensorNamedDataLayoutNHWC@1$MPSGraphTensorNamedDataLayoutOIDHW@9$MPSGraphTensorNamedDataLayoutOIHW@2$"""
34
+ enums = """$MPSGraphDeploymentPlatformIOS@1$MPSGraphDeploymentPlatformMacOS@0$MPSGraphDeploymentPlatformTvOS@2$MPSGraphDeviceTypeMetal@0$MPSGraphExecutionStageCompleted@0$MPSGraphFFTScalingModeNone@0$MPSGraphFFTScalingModeSize@1$MPSGraphFFTScalingModeUnitary@2$MPSGraphLossReductionTypeAxis@0$MPSGraphLossReductionTypeMean@2$MPSGraphLossReductionTypeNone@0$MPSGraphLossReductionTypeSum@1$MPSGraphNonMaximumSuppressionCoordinateModeCentersHeightFirst@2$MPSGraphNonMaximumSuppressionCoordinateModeCentersWidthFirst@3$MPSGraphNonMaximumSuppressionCoordinateModeCornersHeightFirst@0$MPSGraphNonMaximumSuppressionCoordinateModeCornersWidthFirst@1$MPSGraphOptimizationLevel0@0$MPSGraphOptimizationLevel1@1$MPSGraphOptimizationProfilePerformance@0$MPSGraphOptimizationProfilePowerEfficiency@1$MPSGraphOptionsDefault@1$MPSGraphOptionsNone@0$MPSGraphOptionsSynchronizeResults@1$MPSGraphOptionsVerbose@2$MPSGraphPaddingModeAntiPeriodic@6$MPSGraphPaddingModeClampToEdge@3$MPSGraphPaddingModeConstant@0$MPSGraphPaddingModePeriodic@5$MPSGraphPaddingModeReflect@1$MPSGraphPaddingModeSymmetric@2$MPSGraphPaddingModeZero@4$MPSGraphPaddingStyleExplicit@0$MPSGraphPaddingStyleExplicitOffset@3$MPSGraphPaddingStyleONNX_SAME_LOWER@4$MPSGraphPaddingStyleTF_SAME@2$MPSGraphPaddingStyleTF_VALID@1$MPSGraphPoolingReturnIndicesGlobalFlatten1D@1$MPSGraphPoolingReturnIndicesGlobalFlatten2D@2$MPSGraphPoolingReturnIndicesGlobalFlatten3D@3$MPSGraphPoolingReturnIndicesGlobalFlatten4D@4$MPSGraphPoolingReturnIndicesLocalFlatten1D@5$MPSGraphPoolingReturnIndicesLocalFlatten2D@6$MPSGraphPoolingReturnIndicesLocalFlatten3D@7$MPSGraphPoolingReturnIndicesLocalFlatten4D@8$MPSGraphPoolingReturnIndicesNone@0$MPSGraphRNNActivationHardSigmoid@4$MPSGraphRNNActivationNone@0$MPSGraphRNNActivationRelu@1$MPSGraphRNNActivationSigmoid@3$MPSGraphRNNActivationTanh@2$MPSGraphRandomDistributionNormal@1$MPSGraphRandomDistributionTruncatedNormal@2$MPSGraphRandomDistributionUniform@0$MPSGraphRandomNormalSamplingBoxMuller@1$MPSGraphRandomNormalSamplingInvCDF@0$MPSGraphReductionModeArgumentMax@5$MPSGraphReductionModeArgumentMin@4$MPSGraphReductionModeMax@1$MPSGraphReductionModeMin@0$MPSGraphReductionModeProduct@3$MPSGraphReductionModeSum@2$MPSGraphResizeBilinear@1$MPSGraphResizeNearest@0$MPSGraphResizeNearestRoundingModeCeil@2$MPSGraphResizeNearestRoundingModeFloor@3$MPSGraphResizeNearestRoundingModeRoundPreferCeil@0$MPSGraphResizeNearestRoundingModeRoundPreferFloor@1$MPSGraphResizeNearestRoundingModeRoundToEven@4$MPSGraphResizeNearestRoundingModeRoundToOdd@5$MPSGraphScatterModeAdd@0$MPSGraphScatterModeDiv@3$MPSGraphScatterModeMax@5$MPSGraphScatterModeMin@4$MPSGraphScatterModeMul@2$MPSGraphScatterModeSet@6$MPSGraphScatterModeSub@1$MPSGraphSparseStorageCOO@0$MPSGraphSparseStorageCSC@1$MPSGraphSparseStorageCSR@2$MPSGraphTensorNamedDataLayoutCHW@4$MPSGraphTensorNamedDataLayoutDHWIO@10$MPSGraphTensorNamedDataLayoutHW@6$MPSGraphTensorNamedDataLayoutHWC@5$MPSGraphTensorNamedDataLayoutHWIO@3$MPSGraphTensorNamedDataLayoutNCDHW@7$MPSGraphTensorNamedDataLayoutNCHW@0$MPSGraphTensorNamedDataLayoutNDHWC@8$MPSGraphTensorNamedDataLayoutNHWC@1$MPSGraphTensorNamedDataLayoutOIDHW@9$MPSGraphTensorNamedDataLayoutOIHW@2$"""
35
35
  misc.update(
36
36
  {
37
- "MPSGraphOptions": NewType("MPSGraphOptions", int),
37
+ "MPSGraphOptimizationProfile": NewType("MPSGraphOptimizationProfile", int),
38
38
  "MPSGraphTensorNamedDataLayout": NewType("MPSGraphTensorNamedDataLayout", int),
39
39
  "MPSGraphReductionMode": NewType("MPSGraphReductionMode", int),
40
- "MPSGraphPaddingStyle": NewType("MPSGraphPaddingStyle", int),
40
+ "MPSGraphFFTScalingMode": NewType("MPSGraphFFTScalingMode", int),
41
+ "MPSGraphRNNActivation": NewType("MPSGraphRNNActivation", int),
42
+ "MPSGraphDeploymentPlatform": NewType("MPSGraphDeploymentPlatform", int),
41
43
  "MPSGraphOptimization": NewType("MPSGraphOptimization", int),
42
44
  "MPSGraphPaddingMode": NewType("MPSGraphPaddingMode", int),
43
45
  "MPSGraphPoolingReturnIndicesMode": NewType(
44
46
  "MPSGraphPoolingReturnIndicesMode", int
45
47
  ),
46
48
  "MPSGraphDeviceType": NewType("MPSGraphDeviceType", int),
47
- "MPSGraphRNNActivation": NewType("MPSGraphRNNActivation", int),
48
- "MPSGraphOptimizationProfile": NewType("MPSGraphOptimizationProfile", int),
49
+ "MPSGraphPaddingStyle": NewType("MPSGraphPaddingStyle", int),
50
+ "MPSGraphNonMaximumSuppressionCoordinateMode": NewType(
51
+ "MPSGraphNonMaximumSuppressionCoordinateMode", int
52
+ ),
53
+ "MPSGraphOptions": NewType("MPSGraphOptions", int),
49
54
  "MPSGraphExecutionStage": NewType("MPSGraphExecutionStage", int),
50
55
  "MPSGraphResizeMode": NewType("MPSGraphResizeMode", int),
51
56
  "MPSGraphLossReductionType": NewType("MPSGraphLossReductionType", int),
@@ -62,7 +67,10 @@ misc.update(
62
67
  )
63
68
  misc.update({})
64
69
  misc.update({})
65
- aliases = {"MPSGraphOptionsDefault": "MPSGraphOptionsSynchronizeResults"}
70
+ aliases = {
71
+ "MPSGraphLossReductionTypeAxis": "MPSGraphLossReductionTypeNone",
72
+ "MPSGraphOptionsDefault": "MPSGraphOptionsSynchronizeResults",
73
+ }
66
74
  r = objc.registerMetaDataForSelector
67
75
  objc._updatingMetadata(True)
68
76
  try:
@@ -211,6 +219,16 @@ try:
211
219
  }
212
220
  },
213
221
  )
222
+ r(
223
+ b"MPSGraph",
224
+ b"nonMaximumSuppressionWithBoxesTensor:scoresTensor:IOUThreshold:scoreThreshold:perClassSuppression:coordinateMode:name:",
225
+ {"arguments": {6: {"type": b"Z"}}},
226
+ )
227
+ r(
228
+ b"MPSGraph",
229
+ b"nonMaximumSuppressionWithBoxesTensor:scoresTensor:classIndicesTensor:IOUThreshold:scoreThreshold:perClassSuppression:coordinateMode:name:",
230
+ {"arguments": {7: {"type": b"Z"}}},
231
+ )
214
232
  r(
215
233
  b"MPSGraph",
216
234
  b"resizeBilinearWithGradientTensor:input:centerResult:alignCorners:layout:name:",
@@ -221,6 +239,11 @@ try:
221
239
  b"resizeBilinearWithTensor:sizeTensor:centerResult:alignCorners:layout:name:",
222
240
  {"arguments": {4: {"type": b"Z"}, 5: {"type": b"Z"}}},
223
241
  )
242
+ r(
243
+ b"MPSGraph",
244
+ b"resizeBilinearWithTensor:sizeTensor:centerResult:alignCorners:name:",
245
+ {"arguments": {4: {"type": b"Z"}, 5: {"type": b"Z"}}},
246
+ )
224
247
  r(
225
248
  b"MPSGraph",
226
249
  b"resizeNearestWithGradientTensor:input:nearestRoundingMode:centerResult:alignCorners:layout:name:",
@@ -231,6 +254,11 @@ try:
231
254
  b"resizeNearestWithTensor:sizeTensor:nearestRoundingMode:centerResult:alignCorners:layout:name:",
232
255
  {"arguments": {5: {"type": b"Z"}, 6: {"type": b"Z"}}},
233
256
  )
257
+ r(
258
+ b"MPSGraph",
259
+ b"resizeNearestWithTensor:sizeTensor:nearestRoundingMode:centerResult:alignCorners:name:",
260
+ {"arguments": {5: {"type": b"Z"}, 6: {"type": b"Z"}}},
261
+ )
234
262
  r(
235
263
  b"MPSGraph",
236
264
  b"resizeTensor:size:mode:centerResult:alignCorners:layout:name:",
@@ -241,6 +269,11 @@ try:
241
269
  b"resizeTensor:sizeTensor:mode:centerResult:alignCorners:layout:name:",
242
270
  {"arguments": {5: {"type": "Z"}, 6: {"type": "Z"}}},
243
271
  )
272
+ r(
273
+ b"MPSGraph",
274
+ b"resizeTensor:sizeTensor:mode:centerResult:alignCorners:name:",
275
+ {"arguments": {5: {"type": b"Z"}, 6: {"type": b"Z"}}},
276
+ )
244
277
  r(
245
278
  b"MPSGraph",
246
279
  b"resizeWithGradientTensor:input:mode:centerResult:alignCorners:layout:name:",
@@ -432,6 +465,16 @@ try:
432
465
  b"waitUntilCompleted",
433
466
  {"retval": {"type": b"Z"}},
434
467
  )
468
+ r(
469
+ b"MPSGraphExecutableSerializationDescriptor",
470
+ b"append",
471
+ {"retval": {"type": b"Z"}},
472
+ )
473
+ r(
474
+ b"MPSGraphExecutableSerializationDescriptor",
475
+ b"setAppend:",
476
+ {"arguments": {2: {"type": b"Z"}}},
477
+ )
435
478
  r(
436
479
  b"MPSGraphExecutionDescriptor",
437
480
  b"setCompletionHandler:",
@@ -474,6 +517,14 @@ try:
474
517
  {"arguments": {2: {"type": b"Z"}}},
475
518
  )
476
519
  r(b"MPSGraphExecutionDescriptor", b"waitUntilCompleted", {"retval": {"type": b"Z"}})
520
+ r(b"MPSGraphFFTDescriptor", b"inverse", {"retval": {"type": b"Z"}})
521
+ r(b"MPSGraphFFTDescriptor", b"roundToOddHermitean", {"retval": {"type": b"Z"}})
522
+ r(b"MPSGraphFFTDescriptor", b"setInverse:", {"arguments": {2: {"type": b"Z"}}})
523
+ r(
524
+ b"MPSGraphFFTDescriptor",
525
+ b"setRoundToOddHermitean:",
526
+ {"arguments": {2: {"type": b"Z"}}},
527
+ )
477
528
  r(b"MPSGraphGRUDescriptor", b"bidirectional", {"retval": {"type": b"Z"}})
478
529
  r(b"MPSGraphGRUDescriptor", b"flipZ", {"retval": {"type": b"Z"}})
479
530
  r(b"MPSGraphGRUDescriptor", b"resetAfter", {"retval": {"type": b"Z"}})
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyobjc-framework-MetalPerformanceShadersGraph
3
- Version: 9.2
3
+ Version: 10.1
4
4
  Summary: Wrappers for the framework MetalPerformanceShadersGraph on macOS
5
5
  Home-page: https://github.com/ronaldoussoren/pyobjc
6
6
  Author: Ronald Oussoren
@@ -18,17 +18,20 @@ Classifier: Operating System :: MacOS :: MacOS X
18
18
  Classifier: Programming Language :: Python
19
19
  Classifier: Programming Language :: Python :: 3
20
20
  Classifier: Programming Language :: Python :: 3 :: Only
21
- Classifier: Programming Language :: Python :: 3.7
22
21
  Classifier: Programming Language :: Python :: 3.8
23
22
  Classifier: Programming Language :: Python :: 3.9
24
23
  Classifier: Programming Language :: Python :: 3.10
25
24
  Classifier: Programming Language :: Python :: 3.11
25
+ Classifier: Programming Language :: Python :: 3.12
26
+ Classifier: Programming Language :: Python :: 3.13
26
27
  Classifier: Programming Language :: Python :: Implementation :: CPython
27
28
  Classifier: Programming Language :: Objective C
28
29
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
29
30
  Classifier: Topic :: Software Development :: User Interfaces
30
- Requires-Python: >=3.7
31
+ Requires-Python: >=3.8
31
32
  Description-Content-Type: text/x-rst; charset=UTF-8
33
+ Requires-Dist: pyobjc-core>=10.1
34
+ Requires-Dist: pyobjc-framework-MetalPerformanceShaders>=10.1
32
35
  Project-URL: Documentation, https://pyobjc.readthedocs.io/en/latest/
33
36
  Project-URL: Issue tracker, https://github.com/ronaldoussoren/pyobjc/issues
34
37
  Project-URL: Repository, https://github.com/ronaldoussoren/pyobjc
@@ -20,7 +20,9 @@ PyObjCTest/test_mpsgraphcore.py
20
20
  PyObjCTest/test_mpsgraphcumulativeops.py
21
21
  PyObjCTest/test_mpsgraphdevice.py
22
22
  PyObjCTest/test_mpsgraphexecutable.py
23
+ PyObjCTest/test_mpsgraphfouriertransformops.py
23
24
  PyObjCTest/test_mpsgraphlossops.py
25
+ PyObjCTest/test_mpsgraphnonmaximumsuppressionops.py
24
26
  PyObjCTest/test_mpsgraphpoolingops.py
25
27
  PyObjCTest/test_mpsgraphrandomops.py
26
28
  PyObjCTest/test_mpsgraphresizeops.py
@@ -36,8 +38,10 @@ metadata/raw/arm64-12.1.fwinfo
36
38
  metadata/raw/arm64-12.3.fwinfo
37
39
  metadata/raw/arm64-13.0.fwinfo
38
40
  metadata/raw/arm64-13.3.fwinfo
41
+ metadata/raw/arm64-14.0.fwinfo
39
42
  metadata/raw/x86_64-10.16.fwinfo
40
43
  metadata/raw/x86_64-12.1.fwinfo
41
44
  metadata/raw/x86_64-12.3.fwinfo
42
45
  metadata/raw/x86_64-13.0.fwinfo
43
- metadata/raw/x86_64-13.3.fwinfo
46
+ metadata/raw/x86_64-13.3.fwinfo
47
+ metadata/raw/x86_64-14.0.fwinfo
@@ -0,0 +1,2 @@
1
+ pyobjc-core>=10.1
2
+ pyobjc-framework-MetalPerformanceShaders>=10.1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyobjc-framework-MetalPerformanceShadersGraph
3
- Version: 9.2
3
+ Version: 10.1
4
4
  Summary: Wrappers for the framework MetalPerformanceShadersGraph on macOS
5
5
  Home-page: https://github.com/ronaldoussoren/pyobjc
6
6
  Author: Ronald Oussoren
@@ -18,17 +18,20 @@ Classifier: Operating System :: MacOS :: MacOS X
18
18
  Classifier: Programming Language :: Python
19
19
  Classifier: Programming Language :: Python :: 3
20
20
  Classifier: Programming Language :: Python :: 3 :: Only
21
- Classifier: Programming Language :: Python :: 3.7
22
21
  Classifier: Programming Language :: Python :: 3.8
23
22
  Classifier: Programming Language :: Python :: 3.9
24
23
  Classifier: Programming Language :: Python :: 3.10
25
24
  Classifier: Programming Language :: Python :: 3.11
25
+ Classifier: Programming Language :: Python :: 3.12
26
+ Classifier: Programming Language :: Python :: 3.13
26
27
  Classifier: Programming Language :: Python :: Implementation :: CPython
27
28
  Classifier: Programming Language :: Objective C
28
29
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
29
30
  Classifier: Topic :: Software Development :: User Interfaces
30
- Requires-Python: >=3.7
31
+ Requires-Python: >=3.8
31
32
  Description-Content-Type: text/x-rst; charset=UTF-8
33
+ Requires-Dist: pyobjc-core>=10.1
34
+ Requires-Dist: pyobjc-framework-MetalPerformanceShaders>=10.1
32
35
 
33
36
 
34
37
  Wrappers for the "MetalPerformanceShadersGraph" framework on macOS.
@@ -7,6 +7,14 @@ MPSGraphExecutableScheduledHandler = b"v@@"
7
7
 
8
8
 
9
9
  class TestMPSGraphExecutable(TestCase):
10
+ def test_constants(self):
11
+ self.assertIsEnumType(MetalPerformanceShadersGraph.MPSGraphDeploymentPlatform)
12
+ self.assertEqual(
13
+ MetalPerformanceShadersGraph.MPSGraphDeploymentPlatformMacOS, 0
14
+ )
15
+ self.assertEqual(MetalPerformanceShadersGraph.MPSGraphDeploymentPlatformIOS, 1)
16
+ self.assertEqual(MetalPerformanceShadersGraph.MPSGraphDeploymentPlatformTvOS, 2)
17
+
10
18
  @min_os_level("12.0")
11
19
  def test_methods12_0(self):
12
20
  self.assertResultIsBlock(
@@ -27,3 +35,14 @@ class TestMPSGraphExecutable(TestCase):
27
35
  0,
28
36
  MPSGraphExecutableCompletionHandler,
29
37
  )
38
+
39
+ @min_os_level("14.0")
40
+ def test_methods14_0(self):
41
+ self.assertResultIsBOOL(
42
+ MetalPerformanceShadersGraph.MPSGraphExecutableSerializationDescriptor.append
43
+ )
44
+
45
+ self.assertArgIsBOOL(
46
+ MetalPerformanceShadersGraph.MPSGraphExecutableSerializationDescriptor.setAppend_,
47
+ 0,
48
+ )
@@ -0,0 +1,28 @@
1
+ from PyObjCTools.TestSupport import TestCase, min_os_level
2
+
3
+ import MetalPerformanceShadersGraph
4
+
5
+
6
+ class TestMPSGraphFourierTransformOps(TestCase):
7
+ def test_constants(self):
8
+ self.assertIsEnumType(MetalPerformanceShadersGraph.MPSGraphFFTScalingMode)
9
+ self.assertEqual(MetalPerformanceShadersGraph.MPSGraphFFTScalingModeNone, 0)
10
+ self.assertEqual(MetalPerformanceShadersGraph.MPSGraphFFTScalingModeSize, 1)
11
+ self.assertEqual(MetalPerformanceShadersGraph.MPSGraphFFTScalingModeUnitary, 2)
12
+
13
+ @min_os_level("14.0")
14
+ def test_methods14_0(self):
15
+ self.assertResultIsBOOL(
16
+ MetalPerformanceShadersGraph.MPSGraphFFTDescriptor.inverse
17
+ )
18
+ self.assertArgIsBOOL(
19
+ MetalPerformanceShadersGraph.MPSGraphFFTDescriptor.setInverse_, 0
20
+ )
21
+
22
+ self.assertResultIsBOOL(
23
+ MetalPerformanceShadersGraph.MPSGraphFFTDescriptor.roundToOddHermitean
24
+ )
25
+ self.assertArgIsBOOL(
26
+ MetalPerformanceShadersGraph.MPSGraphFFTDescriptor.setRoundToOddHermitean_,
27
+ 0,
28
+ )
@@ -5,6 +5,10 @@ import MetalPerformanceShadersGraph
5
5
 
6
6
  class TestMPSGraphLossOps(TestCase):
7
7
  def test_constants(self):
8
- self.assertEqual(MetalPerformanceShadersGraph.MPSGraphLossReductionTypeAxis, 0)
8
+ self.assertEqual(MetalPerformanceShadersGraph.MPSGraphLossReductionTypeNone, 0)
9
+ self.assertEqual(
10
+ MetalPerformanceShadersGraph.MPSGraphLossReductionTypeAxis,
11
+ MetalPerformanceShadersGraph.MPSGraphLossReductionTypeNone,
12
+ )
9
13
  self.assertEqual(MetalPerformanceShadersGraph.MPSGraphLossReductionTypeSum, 1)
10
14
  self.assertEqual(MetalPerformanceShadersGraph.MPSGraphLossReductionTypeMean, 2)
@@ -0,0 +1,37 @@
1
+ from PyObjCTools.TestSupport import TestCase, min_os_level
2
+
3
+ import MetalPerformanceShadersGraph
4
+
5
+
6
+ class TestMPSGraphNonMaximumSuppressionOps(TestCase):
7
+ def test_constants(self):
8
+ self.assertIsEnumType(
9
+ MetalPerformanceShadersGraph.MPSGraphNonMaximumSuppressionCoordinateMode
10
+ )
11
+ self.assertEqual(
12
+ MetalPerformanceShadersGraph.MPSGraphNonMaximumSuppressionCoordinateModeCornersHeightFirst,
13
+ 0,
14
+ )
15
+ self.assertEqual(
16
+ MetalPerformanceShadersGraph.MPSGraphNonMaximumSuppressionCoordinateModeCornersWidthFirst,
17
+ 1,
18
+ )
19
+ self.assertEqual(
20
+ MetalPerformanceShadersGraph.MPSGraphNonMaximumSuppressionCoordinateModeCentersHeightFirst,
21
+ 2,
22
+ )
23
+ self.assertEqual(
24
+ MetalPerformanceShadersGraph.MPSGraphNonMaximumSuppressionCoordinateModeCentersWidthFirst,
25
+ 3,
26
+ )
27
+
28
+ @min_os_level("14.0")
29
+ def test_methods14_0(self):
30
+ self.assertArgIsBOOL(
31
+ MetalPerformanceShadersGraph.MPSGraph.nonMaximumSuppressionWithBoxesTensor_scoresTensor_IOUThreshold_scoreThreshold_perClassSuppression_coordinateMode_name_,
32
+ 4,
33
+ )
34
+ self.assertArgIsBOOL(
35
+ MetalPerformanceShadersGraph.MPSGraph.nonMaximumSuppressionWithBoxesTensor_scoresTensor_classIndicesTensor_IOUThreshold_scoreThreshold_perClassSuppression_coordinateMode_name_,
36
+ 5,
37
+ )
@@ -102,3 +102,32 @@ class TestMPSGraphResizeOps(TestCase):
102
102
  MetalPerformanceShadersGraph.MPSGraph.resizeBilinearWithGradientTensor_input_centerResult_alignCorners_layout_name_,
103
103
  3,
104
104
  )
105
+
106
+ @min_os_level("14.0")
107
+ def test_methods14_0(self):
108
+ self.assertArgIsBOOL(
109
+ MetalPerformanceShadersGraph.MPSGraph.resizeTensor_sizeTensor_mode_centerResult_alignCorners_name_,
110
+ 3,
111
+ )
112
+ self.assertArgIsBOOL(
113
+ MetalPerformanceShadersGraph.MPSGraph.resizeTensor_sizeTensor_mode_centerResult_alignCorners_name_,
114
+ 4,
115
+ )
116
+
117
+ self.assertArgIsBOOL(
118
+ MetalPerformanceShadersGraph.MPSGraph.resizeNearestWithTensor_sizeTensor_nearestRoundingMode_centerResult_alignCorners_name_,
119
+ 3,
120
+ )
121
+ self.assertArgIsBOOL(
122
+ MetalPerformanceShadersGraph.MPSGraph.resizeNearestWithTensor_sizeTensor_nearestRoundingMode_centerResult_alignCorners_name_,
123
+ 4,
124
+ )
125
+
126
+ self.assertArgIsBOOL(
127
+ MetalPerformanceShadersGraph.MPSGraph.resizeBilinearWithTensor_sizeTensor_centerResult_alignCorners_name_,
128
+ 2,
129
+ )
130
+ self.assertArgIsBOOL(
131
+ MetalPerformanceShadersGraph.MPSGraph.resizeBilinearWithTensor_sizeTensor_centerResult_alignCorners_name_,
132
+ 3,
133
+ )
@@ -24,14 +24,17 @@ class TestMPSGraphTensorShapeOps(TestCase):
24
24
  MetalPerformanceShadersGraph.MPSGraph.depthToSpace2DTensor_widthAxis_heightAxis_depthAxis_blockSize_usePixelShuffleOrder_name_, # noqa: B950
25
25
  5,
26
26
  )
27
- self.assertArgIsBOOL(
28
- MetalPerformanceShadersGraph.MPSGraph.spaceToBatchTensor_spatialAxes_batchAxis_blockDimensions_usePixelShuffleOrder_name_, # noqa: B950
29
- 4,
30
- )
31
27
  self.assertArgIsBOOL(
32
28
  MetalPerformanceShadersGraph.MPSGraph.depthToSpace2DTensor_widthAxis_heightAxis_depthAxis_blockSize_usePixelShuffleOrder_name_, # noqa: B950
33
29
  5,
34
30
  )
31
+
32
+ @min_os_level("13.0")
33
+ def test_methods13_0(self):
34
+ self.assertArgIsBOOL(
35
+ MetalPerformanceShadersGraph.MPSGraph.spaceToBatchTensor_spatialAxes_batchAxis_blockDimensions_usePixelShuffleOrder_name_, # noqa: B950
36
+ 4,
37
+ )
35
38
  self.assertArgIsBOOL(
36
39
  MetalPerformanceShadersGraph.MPSGraph.spaceToBatchTensor_spatialAxes_batchAxis_blockDimensions_usePixelShuffleOrder_name_, # noqa: B950
37
40
  4,