pyobjc-framework-MetalPerformanceShadersGraph 9.2__py2.py3-none-any.whl → 10.1__py2.py3-none-any.whl

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.
@@ -5,28 +5,30 @@ This module does not contain docstrings for the wrapped code, check Apple's
5
5
  documentation for details on how to use these functions and classes.
6
6
  """
7
7
 
8
- import sys
9
-
10
- import MetalPerformanceShaders
11
- import objc
12
- from MetalPerformanceShadersGraph import _metadata
13
-
14
- sys.modules["MetalPerformanceShadersGraph"] = mod = objc.ObjCLazyModule(
15
- "MetalPerformanceShadersGraph",
16
- "com.apple.MetalPerformanceShadersGraph",
17
- objc.pathForFramework(
18
- "/System/Library/Frameworks/MetalPerformanceShadersGraph.framework"
19
- ),
20
- _metadata.__dict__,
21
- None,
22
- {
23
- "__doc__": __doc__,
24
- "objc": objc,
25
- "__path__": __path__,
26
- "__loader__": globals().get("__loader__", None),
27
- },
28
- (MetalPerformanceShaders,),
29
- )
30
-
31
-
32
- del sys.modules["MetalPerformanceShadersGraph._metadata"]
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,22 +18,23 @@ 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
32
33
  Project-URL: Documentation, https://pyobjc.readthedocs.io/en/latest/
33
34
  Project-URL: Issue tracker, https://github.com/ronaldoussoren/pyobjc/issues
34
35
  Project-URL: Repository, https://github.com/ronaldoussoren/pyobjc
35
- Requires-Dist: pyobjc-core (>=9.2)
36
- Requires-Dist: pyobjc-framework-MetalPerformanceShaders (>=9.2)
36
+ Requires-Dist: pyobjc-core >=10.1
37
+ Requires-Dist: pyobjc-framework-MetalPerformanceShaders >=10.1
37
38
 
38
39
 
39
40
  Wrappers for the "MetalPerformanceShadersGraph" framework on macOS.
@@ -0,0 +1,6 @@
1
+ MetalPerformanceShadersGraph/__init__.py,sha256=CO31tb-szkhbGarsJ__d3z-FrXV5PQwrjze50qTfVSs,961
2
+ MetalPerformanceShadersGraph/_metadata.py,sha256=6MKEYZ9010bLZ8jcmwwculONk7ZjrS7fX8fEOxedvKA,27153
3
+ pyobjc_framework_MetalPerformanceShadersGraph-10.1.dist-info/METADATA,sha256=x9-Cc_T8PTIFcu88kcRsMq5Lyx34VA815QC5eCnAD-I,2332
4
+ pyobjc_framework_MetalPerformanceShadersGraph-10.1.dist-info/WHEEL,sha256=iYlv5fX357PQyRT2o6tw1bN-YcKFFHKqB_LwHO5wP-g,110
5
+ pyobjc_framework_MetalPerformanceShadersGraph-10.1.dist-info/top_level.txt,sha256=jzyLuOPJGzGhRoS5xrMLtXTXoyhGZ5hEe7eJR-Lmluk,29
6
+ pyobjc_framework_MetalPerformanceShadersGraph-10.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.40.0)
2
+ Generator: bdist_wheel (0.41.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py2-none-any
5
5
  Tag: py3-none-any
@@ -1,6 +0,0 @@
1
- MetalPerformanceShadersGraph/__init__.py,sha256=NOIQy1i45yGH6JJuvw2YvbiTCx0zR0WPutcL_doi4bw,868
2
- MetalPerformanceShadersGraph/_metadata.py,sha256=0uB322g_Kmzit1Bep89yYd2uQ4q3ImR14_1iBVW-n88,24704
3
- pyobjc_framework_MetalPerformanceShadersGraph-9.2.dist-info/METADATA,sha256=E51s6GA5VKan5DvEviO3cDPmxMp39G9U2I1Egj6YISY,2281
4
- pyobjc_framework_MetalPerformanceShadersGraph-9.2.dist-info/WHEEL,sha256=a-zpFRIJzOq5QfuhBzbhiA1eHTzNCJn8OdRvhdNX0Rk,110
5
- pyobjc_framework_MetalPerformanceShadersGraph-9.2.dist-info/top_level.txt,sha256=jzyLuOPJGzGhRoS5xrMLtXTXoyhGZ5hEe7eJR-Lmluk,29
6
- pyobjc_framework_MetalPerformanceShadersGraph-9.2.dist-info/RECORD,,