pyobjc-framework-MetalPerformanceShadersGraph 11.0__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.
@@ -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")()
@@ -0,0 +1,790 @@
1
+ # This file is generated by objective.metadata
2
+ #
3
+ # Last update: Tue Jun 11 10:15:24 2024
4
+ #
5
+ # flake8: noqa
6
+
7
+ import objc, sys
8
+ from typing import NewType
9
+
10
+ if sys.maxsize > 2**32:
11
+
12
+ def sel32or64(a, b):
13
+ return b
14
+
15
+ else:
16
+
17
+ def sel32or64(a, b):
18
+ return a
19
+
20
+
21
+ if objc.arch == "arm64":
22
+
23
+ def selAorI(a, b):
24
+ return a
25
+
26
+ else:
27
+
28
+ def selAorI(a, b):
29
+ return b
30
+
31
+
32
+ misc = {}
33
+ constants = """$$"""
34
+ enums = """$MPSGraphDeploymentPlatformIOS@1$MPSGraphDeploymentPlatformMacOS@0$MPSGraphDeploymentPlatformTvOS@2$MPSGraphDeploymentPlatformVisionOS@3$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
+ misc.update(
36
+ {
37
+ "MPSGraphOptimizationProfile": NewType("MPSGraphOptimizationProfile", int),
38
+ "MPSGraphTensorNamedDataLayout": NewType("MPSGraphTensorNamedDataLayout", int),
39
+ "MPSGraphReductionMode": NewType("MPSGraphReductionMode", int),
40
+ "MPSGraphFFTScalingMode": NewType("MPSGraphFFTScalingMode", int),
41
+ "MPSGraphRNNActivation": NewType("MPSGraphRNNActivation", int),
42
+ "MPSGraphDeploymentPlatform": NewType("MPSGraphDeploymentPlatform", int),
43
+ "MPSGraphOptimization": NewType("MPSGraphOptimization", int),
44
+ "MPSGraphPaddingMode": NewType("MPSGraphPaddingMode", int),
45
+ "MPSGraphPoolingReturnIndicesMode": NewType(
46
+ "MPSGraphPoolingReturnIndicesMode", int
47
+ ),
48
+ "MPSGraphDeviceType": NewType("MPSGraphDeviceType", int),
49
+ "MPSGraphPaddingStyle": NewType("MPSGraphPaddingStyle", int),
50
+ "MPSGraphNonMaximumSuppressionCoordinateMode": NewType(
51
+ "MPSGraphNonMaximumSuppressionCoordinateMode", int
52
+ ),
53
+ "MPSGraphOptions": NewType("MPSGraphOptions", int),
54
+ "MPSGraphExecutionStage": NewType("MPSGraphExecutionStage", int),
55
+ "MPSGraphResizeMode": NewType("MPSGraphResizeMode", int),
56
+ "MPSGraphLossReductionType": NewType("MPSGraphLossReductionType", int),
57
+ "MPSGraphResizeNearestRoundingMode": NewType(
58
+ "MPSGraphResizeNearestRoundingMode", int
59
+ ),
60
+ "MPSGraphRandomNormalSamplingMethod": NewType(
61
+ "MPSGraphRandomNormalSamplingMethod", int
62
+ ),
63
+ "MPSGraphScatterMode": NewType("MPSGraphScatterMode", int),
64
+ "MPSGraphRandomDistribution": NewType("MPSGraphRandomDistribution", int),
65
+ "MPSGraphSparseStorageType": NewType("MPSGraphSparseStorageType", int),
66
+ }
67
+ )
68
+ misc.update({})
69
+ misc.update({})
70
+ aliases = {
71
+ "MPSGraphLossReductionTypeAxis": "MPSGraphLossReductionTypeNone",
72
+ "MPSGraphOptionsDefault": "MPSGraphOptionsSynchronizeResults",
73
+ }
74
+ r = objc.registerMetaDataForSelector
75
+ objc._updatingMetadata(True)
76
+ try:
77
+ r(
78
+ b"MPSGraph",
79
+ b"argSortWithTensor:axis:descending:name:",
80
+ {"arguments": {4: {"type": b"Z"}}},
81
+ )
82
+ r(
83
+ b"MPSGraph",
84
+ b"argSortWithTensor:axisTensor:descending:name:",
85
+ {"arguments": {4: {"type": b"Z"}}},
86
+ )
87
+ r(
88
+ b"MPSGraph",
89
+ b"batchToSpaceTensor:spatialAxes:batchAxis:blockDimensions:usePixelShuffleOrder:name:",
90
+ {"arguments": {6: {"type": b"Z"}}},
91
+ )
92
+ r(
93
+ b"MPSGraph",
94
+ b"batchToSpaceTensor:spatialAxesTensor:batchAxisTensor:blockDimensionsTensor:usePixelShuffleOrder:name:",
95
+ {"arguments": {6: {"type": b"Z"}}},
96
+ )
97
+ r(
98
+ b"MPSGraph",
99
+ b"concatTensors:dimension:interleave:name:",
100
+ {"arguments": {4: {"type": b"Z"}}},
101
+ )
102
+ r(
103
+ b"MPSGraph",
104
+ b"controlDependencyWithOperations:dependentBlock:name:",
105
+ {
106
+ "arguments": {
107
+ 3: {
108
+ "callable": {
109
+ "retval": {"type": b"@"},
110
+ "arguments": {0: {"type": b"^v"}},
111
+ }
112
+ }
113
+ }
114
+ },
115
+ )
116
+ r(
117
+ b"MPSGraph",
118
+ b"cumulativeMaximumWithTensor:axis:exclusive:reverse:name:",
119
+ {"arguments": {4: {"type": b"Z"}, 5: {"type": b"Z"}}},
120
+ )
121
+ r(
122
+ b"MPSGraph",
123
+ b"cumulativeMaximumWithTensor:axisTensor:exclusive:reverse:name:",
124
+ {"arguments": {4: {"type": b"Z"}, 5: {"type": b"Z"}}},
125
+ )
126
+ r(
127
+ b"MPSGraph",
128
+ b"cumulativeMinimumWithTensor:axis:exclusive:reverse:name:",
129
+ {"arguments": {4: {"type": b"Z"}, 5: {"type": b"Z"}}},
130
+ )
131
+ r(
132
+ b"MPSGraph",
133
+ b"cumulativeMinimumWithTensor:axisTensor:exclusive:reverse:name:",
134
+ {"arguments": {4: {"type": b"Z"}, 5: {"type": b"Z"}}},
135
+ )
136
+ r(
137
+ b"MPSGraph",
138
+ b"cumulativeProductWithTensor:axis:exclusive:reverse:name:",
139
+ {"arguments": {4: {"type": b"Z"}, 5: {"type": b"Z"}}},
140
+ )
141
+ r(
142
+ b"MPSGraph",
143
+ b"cumulativeProductWithTensor:axisTensor:exclusive:reverse:name:",
144
+ {"arguments": {4: {"type": b"Z"}, 5: {"type": b"Z"}}},
145
+ )
146
+ r(
147
+ b"MPSGraph",
148
+ b"cumulativeSumWithTensor:axis:exclusive:reverse:name:",
149
+ {"arguments": {4: {"type": b"Z"}, 5: {"type": b"Z"}}},
150
+ )
151
+ r(
152
+ b"MPSGraph",
153
+ b"cumulativeSumWithTensor:axisTensor:exclusive:reverse:name:",
154
+ {"arguments": {4: {"type": b"Z"}, 5: {"type": b"Z"}}},
155
+ )
156
+ r(
157
+ b"MPSGraph",
158
+ b"depthToSpace2DTensor:widthAxis:heightAxis:depthAxis:blockSize:usePixelShuffleOrder:name:",
159
+ {"arguments": {7: {"type": "Z"}}},
160
+ )
161
+ r(
162
+ b"MPSGraph",
163
+ b"depthToSpace2DTensor:widthAxisTensor:heightAxisTensor:depthAxisTensor:blockSize:usePixelShuffleOrder:name:",
164
+ {"arguments": {7: {"type": "Z"}}},
165
+ )
166
+ r(
167
+ b"MPSGraph",
168
+ b"forLoopWithLowerBound:upperBound:step:initialBodyArguments:body:name:",
169
+ {
170
+ "arguments": {
171
+ 6: {
172
+ "callable": {
173
+ "retval": {"type": b"@"},
174
+ "arguments": {
175
+ 0: {"type": b"^v"},
176
+ 1: {"type": b"@"},
177
+ 2: {"type": b"@"},
178
+ },
179
+ }
180
+ }
181
+ }
182
+ },
183
+ )
184
+ r(
185
+ b"MPSGraph",
186
+ b"forLoopWithNumberOfIterations:initialBodyArguments:body:name:",
187
+ {
188
+ "arguments": {
189
+ 4: {
190
+ "callable": {
191
+ "retval": {"type": b"@"},
192
+ "arguments": {
193
+ 0: {"type": b"^v"},
194
+ 1: {"type": b"@"},
195
+ 2: {"type": b"@"},
196
+ },
197
+ }
198
+ }
199
+ }
200
+ },
201
+ )
202
+ r(
203
+ b"MPSGraph",
204
+ b"ifWithPredicateTensor:thenBlock:elseBlock:name:",
205
+ {
206
+ "arguments": {
207
+ 3: {
208
+ "callable": {
209
+ "retval": {"type": b"@"},
210
+ "arguments": {0: {"type": b"^v"}},
211
+ }
212
+ },
213
+ 4: {
214
+ "callable": {
215
+ "retval": {"type": b"@"},
216
+ "arguments": {0: {"type": b"^v"}},
217
+ }
218
+ },
219
+ }
220
+ },
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
+ )
232
+ r(
233
+ b"MPSGraph",
234
+ b"resizeBilinearWithGradientTensor:input:centerResult:alignCorners:layout:name:",
235
+ {"arguments": {4: {"type": b"Z"}, 5: {"type": b"Z"}}},
236
+ )
237
+ r(
238
+ b"MPSGraph",
239
+ b"resizeBilinearWithTensor:sizeTensor:centerResult:alignCorners:layout:name:",
240
+ {"arguments": {4: {"type": b"Z"}, 5: {"type": b"Z"}}},
241
+ )
242
+ r(
243
+ b"MPSGraph",
244
+ b"resizeBilinearWithTensor:sizeTensor:centerResult:alignCorners:name:",
245
+ {"arguments": {4: {"type": b"Z"}, 5: {"type": b"Z"}}},
246
+ )
247
+ r(
248
+ b"MPSGraph",
249
+ b"resizeNearestWithGradientTensor:input:nearestRoundingMode:centerResult:alignCorners:layout:name:",
250
+ {"arguments": {5: {"type": b"Z"}, 6: {"type": b"Z"}}},
251
+ )
252
+ r(
253
+ b"MPSGraph",
254
+ b"resizeNearestWithTensor:sizeTensor:nearestRoundingMode:centerResult:alignCorners:layout:name:",
255
+ {"arguments": {5: {"type": b"Z"}, 6: {"type": b"Z"}}},
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
+ )
262
+ r(
263
+ b"MPSGraph",
264
+ b"resizeTensor:size:mode:centerResult:alignCorners:layout:name:",
265
+ {"arguments": {5: {"type": b"Z"}, 6: {"type": b"Z"}}},
266
+ )
267
+ r(
268
+ b"MPSGraph",
269
+ b"resizeTensor:sizeTensor:mode:centerResult:alignCorners:layout:name:",
270
+ {"arguments": {5: {"type": "Z"}, 6: {"type": "Z"}}},
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
+ )
277
+ r(
278
+ b"MPSGraph",
279
+ b"resizeWithGradientTensor:input:mode:centerResult:alignCorners:layout:name:",
280
+ {"arguments": {5: {"type": b"Z"}, 6: {"type": b"Z"}}},
281
+ )
282
+ r(
283
+ b"MPSGraph",
284
+ b"sampleGridWithSourceTensor:coordinateTensor:layout:normalizeCoordinates:relativeCoordinates:alignCorners:paddingMode:nearestRoundingMode:constantValue:name:",
285
+ {"arguments": {5: {"type": b"Z"}, 6: {"type": b"Z"}, 7: {"type": b"Z"}}},
286
+ )
287
+ r(
288
+ b"MPSGraph",
289
+ b"sampleGridWithSourceTensor:coordinateTensor:layout:normalizeCoordinates:relativeCoordinates:alignCorners:paddingMode:samplingMode:constantValue:name:",
290
+ {"arguments": {5: {"type": b"Z"}, 6: {"type": b"Z"}, 7: {"type": b"Z"}}},
291
+ )
292
+ r(
293
+ b"MPSGraph",
294
+ b"sortWithTensor:axis:descending:name:",
295
+ {"arguments": {4: {"type": b"Z"}}},
296
+ )
297
+ r(
298
+ b"MPSGraph",
299
+ b"sortWithTensor:axisTensor:descending:name:",
300
+ {"arguments": {4: {"type": b"Z"}}},
301
+ )
302
+ r(
303
+ b"MPSGraph",
304
+ b"spaceToBatchTensor:spatialAxes:batchAxis:blockDimensions:usePixelShuffleOrder:name:",
305
+ {"arguments": {6: {"type": b"Z"}}},
306
+ )
307
+ r(
308
+ b"MPSGraph",
309
+ b"spaceToBatchTensor:spatialAxesTensor:batchAxisTensor:blockDimensionsTensor:usePixelShuffleOrder:name:",
310
+ {"arguments": {6: {"type": b"Z"}}},
311
+ )
312
+ r(
313
+ b"MPSGraph",
314
+ b"spaceToDepth2DTensor:widthAxis:heightAxis:depthAxis:blockSize:usePixelShuffleOrder:name:",
315
+ {"arguments": {7: {"type": "Z"}}},
316
+ )
317
+ r(
318
+ b"MPSGraph",
319
+ b"spaceToDepth2DTensor:widthAxisTensor:heightAxisTensor:depthAxisTensor:blockSize:usePixelShuffleOrder:name:",
320
+ {"arguments": {7: {"type": b"Z"}}},
321
+ )
322
+ r(
323
+ b"MPSGraph",
324
+ b"whileWithInitialInputs:before:after:name:",
325
+ {
326
+ "arguments": {
327
+ 3: {
328
+ "callable": {
329
+ "retval": {"type": b"@"},
330
+ "arguments": {
331
+ 0: {"type": b"^v"},
332
+ 1: {"type": b"@"},
333
+ 2: {"type": b"@"},
334
+ },
335
+ }
336
+ },
337
+ 4: {
338
+ "callable": {
339
+ "retval": {"type": b"@"},
340
+ "arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
341
+ }
342
+ },
343
+ }
344
+ },
345
+ )
346
+ r(
347
+ b"MPSGraphCompilationDescriptor",
348
+ b"compilationCompletionHandler",
349
+ {
350
+ "retval": {
351
+ "callable": {
352
+ "retval": {"type": b"v"},
353
+ "arguments": {
354
+ 0: {"type": b"^v"},
355
+ 1: {"type": b"@"},
356
+ 2: {"type": b"@"},
357
+ },
358
+ }
359
+ }
360
+ },
361
+ )
362
+ r(
363
+ b"MPSGraphCompilationDescriptor",
364
+ b"setCompilationCompletionHandler:",
365
+ {
366
+ "arguments": {
367
+ 2: {
368
+ "callable": {
369
+ "retval": {"type": b"v"},
370
+ "arguments": {
371
+ 0: {"type": b"^v"},
372
+ 1: {"type": b"@"},
373
+ 2: {"type": b"@"},
374
+ },
375
+ }
376
+ }
377
+ }
378
+ },
379
+ )
380
+ r(
381
+ b"MPSGraphCompilationDescriptor",
382
+ b"setWaitForCompilationCompletion:",
383
+ {"arguments": {2: {"type": b"Z"}}},
384
+ )
385
+ r(
386
+ b"MPSGraphCompilationDescriptor",
387
+ b"waitForCompilationCompletion",
388
+ {"retval": {"type": b"Z"}},
389
+ )
390
+ r(
391
+ b"MPSGraphExecutableExecutionDescriptor",
392
+ b"completionHandler",
393
+ {
394
+ "retval": {
395
+ "callable": {
396
+ "retval": {"type": b"v"},
397
+ "arguments": {
398
+ 0: {"type": b"^v"},
399
+ 1: {"type": b"@"},
400
+ 2: {"type": b"@"},
401
+ },
402
+ }
403
+ }
404
+ },
405
+ )
406
+ r(
407
+ b"MPSGraphExecutableExecutionDescriptor",
408
+ b"scheduledHandler",
409
+ {
410
+ "retval": {
411
+ "callable": {
412
+ "retval": {"type": b"v"},
413
+ "arguments": {
414
+ 0: {"type": b"^v"},
415
+ 1: {"type": b"@"},
416
+ 2: {"type": b"@"},
417
+ },
418
+ }
419
+ }
420
+ },
421
+ )
422
+ r(
423
+ b"MPSGraphExecutableExecutionDescriptor",
424
+ b"setCompletionHandler:",
425
+ {
426
+ "arguments": {
427
+ 2: {
428
+ "callable": {
429
+ "retval": {"type": b"v"},
430
+ "arguments": {
431
+ 0: {"type": b"^v"},
432
+ 1: {"type": b"@"},
433
+ 2: {"type": b"@"},
434
+ },
435
+ }
436
+ }
437
+ }
438
+ },
439
+ )
440
+ r(
441
+ b"MPSGraphExecutableExecutionDescriptor",
442
+ b"setScheduledHandler:",
443
+ {
444
+ "arguments": {
445
+ 2: {
446
+ "callable": {
447
+ "retval": {"type": b"v"},
448
+ "arguments": {
449
+ 0: {"type": b"^v"},
450
+ 1: {"type": b"@"},
451
+ 2: {"type": b"@"},
452
+ },
453
+ }
454
+ }
455
+ }
456
+ },
457
+ )
458
+ r(
459
+ b"MPSGraphExecutableExecutionDescriptor",
460
+ b"setWaitUntilCompleted:",
461
+ {"arguments": {2: {"type": b"Z"}}},
462
+ )
463
+ r(
464
+ b"MPSGraphExecutableExecutionDescriptor",
465
+ b"waitUntilCompleted",
466
+ {"retval": {"type": b"Z"}},
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
+ )
478
+ r(
479
+ b"MPSGraphExecutionDescriptor",
480
+ b"completionHandler",
481
+ {
482
+ "retval": {
483
+ "callable": {
484
+ "retval": {"type": b"v"},
485
+ "arguments": {0: {"type": b"^v"}},
486
+ }
487
+ }
488
+ },
489
+ )
490
+ r(
491
+ b"MPSGraphExecutionDescriptor",
492
+ b"scheduledHandler",
493
+ {
494
+ "retval": {
495
+ "callable": {
496
+ "retval": {"type": b"v"},
497
+ "arguments": {0: {"type": b"^v"}},
498
+ }
499
+ }
500
+ },
501
+ )
502
+ r(
503
+ b"MPSGraphExecutionDescriptor",
504
+ b"setCompletionHandler:",
505
+ {
506
+ "arguments": {
507
+ 2: {
508
+ "callable": {
509
+ "retval": {"type": b"v"},
510
+ "arguments": {
511
+ 0: {"type": b"^v"},
512
+ 1: {"type": b"@"},
513
+ 2: {"type": b"@"},
514
+ },
515
+ }
516
+ }
517
+ }
518
+ },
519
+ )
520
+ r(
521
+ b"MPSGraphExecutionDescriptor",
522
+ b"setScheduledHandler:",
523
+ {
524
+ "arguments": {
525
+ 2: {
526
+ "callable": {
527
+ "retval": {"type": b"v"},
528
+ "arguments": {
529
+ 0: {"type": b"^v"},
530
+ 1: {"type": b"@"},
531
+ 2: {"type": b"@"},
532
+ },
533
+ }
534
+ }
535
+ }
536
+ },
537
+ )
538
+ r(
539
+ b"MPSGraphExecutionDescriptor",
540
+ b"setWaitUntilCompleted:",
541
+ {"arguments": {2: {"type": b"Z"}}},
542
+ )
543
+ r(b"MPSGraphExecutionDescriptor", b"waitUntilCompleted", {"retval": {"type": b"Z"}})
544
+ r(b"MPSGraphFFTDescriptor", b"inverse", {"retval": {"type": b"Z"}})
545
+ r(b"MPSGraphFFTDescriptor", b"roundToOddHermitean", {"retval": {"type": b"Z"}})
546
+ r(b"MPSGraphFFTDescriptor", b"setInverse:", {"arguments": {2: {"type": b"Z"}}})
547
+ r(
548
+ b"MPSGraphFFTDescriptor",
549
+ b"setRoundToOddHermitean:",
550
+ {"arguments": {2: {"type": b"Z"}}},
551
+ )
552
+ r(b"MPSGraphGRUDescriptor", b"bidirectional", {"retval": {"type": b"Z"}})
553
+ r(b"MPSGraphGRUDescriptor", b"flipZ", {"retval": {"type": b"Z"}})
554
+ r(b"MPSGraphGRUDescriptor", b"resetAfter", {"retval": {"type": b"Z"}})
555
+ r(b"MPSGraphGRUDescriptor", b"resetGateFirst", {"retval": {"type": b"Z"}})
556
+ r(b"MPSGraphGRUDescriptor", b"reverse", {"retval": {"type": b"Z"}})
557
+ r(
558
+ b"MPSGraphGRUDescriptor",
559
+ b"setBidirectional:",
560
+ {"arguments": {2: {"type": b"Z"}}},
561
+ )
562
+ r(b"MPSGraphGRUDescriptor", b"setFlipZ:", {"arguments": {2: {"type": b"Z"}}})
563
+ r(b"MPSGraphGRUDescriptor", b"setResetAfter:", {"arguments": {2: {"type": b"Z"}}})
564
+ r(
565
+ b"MPSGraphGRUDescriptor",
566
+ b"setResetGateFirst:",
567
+ {"arguments": {2: {"type": b"Z"}}},
568
+ )
569
+ r(b"MPSGraphGRUDescriptor", b"setReverse:", {"arguments": {2: {"type": b"Z"}}})
570
+ r(b"MPSGraphGRUDescriptor", b"setTraining:", {"arguments": {2: {"type": b"Z"}}})
571
+ r(b"MPSGraphGRUDescriptor", b"training", {"retval": {"type": b"Z"}})
572
+ r(b"MPSGraphLSTMDescriptor", b"bidirectional", {"retval": {"type": "Z"}})
573
+ r(b"MPSGraphLSTMDescriptor", b"forgetGateLast", {"retval": {"type": "Z"}})
574
+ r(b"MPSGraphLSTMDescriptor", b"produceCell", {"retval": {"type": "Z"}})
575
+ r(b"MPSGraphLSTMDescriptor", b"reverse", {"retval": {"type": "Z"}})
576
+ r(
577
+ b"MPSGraphLSTMDescriptor",
578
+ b"setBidirectional:",
579
+ {"arguments": {2: {"type": "Z"}}},
580
+ )
581
+ r(
582
+ b"MPSGraphLSTMDescriptor",
583
+ b"setForgetGateLast:",
584
+ {"arguments": {2: {"type": "Z"}}},
585
+ )
586
+ r(b"MPSGraphLSTMDescriptor", b"setProduceCell:", {"arguments": {2: {"type": "Z"}}})
587
+ r(b"MPSGraphLSTMDescriptor", b"setReverse:", {"arguments": {2: {"type": "Z"}}})
588
+ r(b"MPSGraphLSTMDescriptor", b"setTraining:", {"arguments": {2: {"type": "Z"}}})
589
+ r(b"MPSGraphLSTMDescriptor", b"training", {"retval": {"type": "Z"}})
590
+ r(b"MPSGraphPooling2DOpDescriptor", b"ceilMode", {"retval": {"type": b"Z"}})
591
+ r(
592
+ b"MPSGraphPooling2DOpDescriptor",
593
+ b"includeZeroPadToAverage",
594
+ {"retval": {"type": b"Z"}},
595
+ )
596
+ r(
597
+ b"MPSGraphPooling2DOpDescriptor",
598
+ b"setCeilMode:",
599
+ {"arguments": {2: {"type": b"Z"}}},
600
+ )
601
+ r(
602
+ b"MPSGraphPooling2DOpDescriptor",
603
+ b"setIncludeZeroPadToAverage:",
604
+ {"arguments": {2: {"type": b"Z"}}},
605
+ )
606
+ r(b"MPSGraphPooling4DOpDescriptor", b"ceilMode", {"retval": {"type": b"Z"}})
607
+ r(
608
+ b"MPSGraphPooling4DOpDescriptor",
609
+ b"includeZeroPadToAverage",
610
+ {"retval": {"type": b"Z"}},
611
+ )
612
+ r(
613
+ b"MPSGraphPooling4DOpDescriptor",
614
+ b"setCeilMode:",
615
+ {"arguments": {2: {"type": b"Z"}}},
616
+ )
617
+ r(
618
+ b"MPSGraphPooling4DOpDescriptor",
619
+ b"setIncludeZeroPadToAverage:",
620
+ {"arguments": {2: {"type": b"Z"}}},
621
+ )
622
+ r(b"MPSGraphShapedType", b"isEqualTo:", {"retval": {"type": b"Z"}})
623
+ r(b"MPSGraphSingleGateRNNDescriptor", b"bidirectional", {"retval": {"type": "Z"}})
624
+ r(b"MPSGraphSingleGateRNNDescriptor", b"reverse", {"retval": {"type": "Z"}})
625
+ r(
626
+ b"MPSGraphSingleGateRNNDescriptor",
627
+ b"setBidirectional:",
628
+ {"arguments": {2: {"type": "Z"}}},
629
+ )
630
+ r(
631
+ b"MPSGraphSingleGateRNNDescriptor",
632
+ b"setReverse:",
633
+ {"arguments": {2: {"type": "Z"}}},
634
+ )
635
+ r(
636
+ b"MPSGraphSingleGateRNNDescriptor",
637
+ b"setTraining:",
638
+ {"arguments": {2: {"type": "Z"}}},
639
+ )
640
+ r(b"MPSGraphSingleGateRNNDescriptor", b"training", {"retval": {"type": "Z"}})
641
+ r(
642
+ b"null",
643
+ b"concatTensors:dimension:interleave:name:",
644
+ {"arguments": {4: {"type": b"Z"}}},
645
+ )
646
+ r(
647
+ b"null",
648
+ b"controlDependencyWithOperations:dependentBlock:name:",
649
+ {
650
+ "arguments": {
651
+ 3: {
652
+ "callable": {
653
+ "retval": {"type": b"@?"},
654
+ "arguments": {0: {"type": b"^v"}},
655
+ }
656
+ }
657
+ }
658
+ },
659
+ )
660
+ r(
661
+ b"null",
662
+ b"depthToSpace2DTensor:widthAxis:heightAxis:depthAxis:blockSize:usePixelShuffleOrder:name:",
663
+ {"arguments": {7: {"type": b"Z"}}},
664
+ )
665
+ r(
666
+ b"null",
667
+ b"depthToSpace2DTensor:widthAxisTensor:heightAxisTensor:depthAxisTensor:blockSize:usePixelShuffleOrder:name:",
668
+ {"arguments": {7: {"type": b"Z"}}},
669
+ )
670
+ r(
671
+ b"null",
672
+ b"forLoopWithLowerBound:upperBound:step:initialBodyArguments:body:name:",
673
+ {
674
+ "arguments": {
675
+ 6: {
676
+ "callable": {
677
+ "retval": {"type": b"@?"},
678
+ "arguments": {0: {"type": b"^v"}},
679
+ }
680
+ }
681
+ }
682
+ },
683
+ )
684
+ r(
685
+ b"null",
686
+ b"forLoopWithNumberOfIterations:initialBodyArguments:body:name:",
687
+ {
688
+ "arguments": {
689
+ 4: {
690
+ "callable": {
691
+ "retval": {"type": b"@?"},
692
+ "arguments": {0: {"type": b"^v"}},
693
+ }
694
+ }
695
+ }
696
+ },
697
+ )
698
+ r(
699
+ b"null",
700
+ b"ifWithPredicateTensor:thenBlock:elseBlock:name:",
701
+ {
702
+ "arguments": {
703
+ 3: {
704
+ "callable": {
705
+ "retval": {"type": b"@?"},
706
+ "arguments": {0: {"type": b"^v"}},
707
+ }
708
+ },
709
+ 4: {
710
+ "callable": {
711
+ "retval": {"type": b"@?"},
712
+ "arguments": {0: {"type": b"^v"}},
713
+ }
714
+ },
715
+ }
716
+ },
717
+ )
718
+ r(
719
+ b"null",
720
+ b"resizeTensor:size:mode:centerResult:alignCorners:layout:name:",
721
+ {"arguments": {5: {"type": b"Z"}, 6: {"type": b"Z"}}},
722
+ )
723
+ r(
724
+ b"null",
725
+ b"resizeTensor:sizeTensor:mode:centerResult:alignCorners:layout:name:",
726
+ {"arguments": {5: {"type": b"Z"}, 6: {"type": b"Z"}}},
727
+ )
728
+ r(
729
+ b"null",
730
+ b"resizeWithGradientTensor:input:mode:centerResult:alignCorners:layout:name:",
731
+ {"arguments": {5: {"type": b"Z"}, 6: {"type": b"Z"}}},
732
+ )
733
+ r(
734
+ b"null",
735
+ b"spaceToDepth2DTensor:widthAxis:heightAxis:depthAxis:blockSize:usePixelShuffleOrder:name:",
736
+ {"arguments": {7: {"type": b"Z"}}},
737
+ )
738
+ r(
739
+ b"null",
740
+ b"spaceToDepth2DTensor:widthAxisTensor:heightAxisTensor:depthAxisTensor:blockSize:usePixelShuffleOrder:name:",
741
+ {"arguments": {7: {"type": b"Z"}}},
742
+ )
743
+ r(
744
+ b"null",
745
+ b"whileWithInitialInputs:before:after:name:",
746
+ {
747
+ "arguments": {
748
+ 3: {
749
+ "callable": {
750
+ "retval": {"type": b"@?"},
751
+ "arguments": {0: {"type": b"^v"}},
752
+ }
753
+ },
754
+ 4: {
755
+ "callable": {
756
+ "retval": {"type": b"@?"},
757
+ "arguments": {0: {"type": b"^v"}},
758
+ }
759
+ },
760
+ }
761
+ },
762
+ )
763
+ finally:
764
+ objc._updatingMetadata(False)
765
+
766
+ objc.registerNewKeywordsFromSelector(
767
+ "MPSGraphExecutable", b"initWithCoreMLPackageAtURL:compilationDescriptor:"
768
+ )
769
+ objc.registerNewKeywordsFromSelector(
770
+ "MPSGraphExecutable", b"initWithMPSGraphPackageAtURL:compilationDescriptor:"
771
+ )
772
+ objc.registerNewKeywordsFromSelector("MPSGraphShapedType", b"initWithShape:dataType:")
773
+ objc.registerNewKeywordsFromSelector(
774
+ "MPSGraphTensorData", b"initWithDevice:data:shape:dataType:"
775
+ )
776
+ objc.registerNewKeywordsFromSelector("MPSGraphTensorData", b"initWithMPSImageBatch:")
777
+ objc.registerNewKeywordsFromSelector("MPSGraphTensorData", b"initWithMPSMatrix:")
778
+ objc.registerNewKeywordsFromSelector("MPSGraphTensorData", b"initWithMPSMatrix:rank:")
779
+ objc.registerNewKeywordsFromSelector("MPSGraphTensorData", b"initWithMPSNDArray:")
780
+ objc.registerNewKeywordsFromSelector("MPSGraphTensorData", b"initWithMPSVector:")
781
+ objc.registerNewKeywordsFromSelector("MPSGraphTensorData", b"initWithMPSVector:rank:")
782
+ objc.registerNewKeywordsFromSelector(
783
+ "MPSGraphTensorData", b"initWithMTLBuffer:shape:dataType:"
784
+ )
785
+ objc.registerNewKeywordsFromSelector(
786
+ "MPSGraphTensorData", b"initWithMTLBuffer:shape:dataType:rowBytes:"
787
+ )
788
+ expressions = {}
789
+
790
+ # END OF FILE
@@ -0,0 +1,56 @@
1
+ Metadata-Version: 2.1
2
+ Name: pyobjc-framework-MetalPerformanceShadersGraph
3
+ Version: 11.0
4
+ Summary: Wrappers for the framework MetalPerformanceShadersGraph on macOS
5
+ Home-page: https://github.com/ronaldoussoren/pyobjc
6
+ Author: Ronald Oussoren
7
+ Author-email: pyobjc-dev@lists.sourceforge.net
8
+ License: MIT License
9
+ Keywords: PyObjC,MetalPerformanceShadersGraph
10
+ Platform: MacOS X (>=10.16)
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Classifier: Environment :: Console
13
+ Classifier: Environment :: MacOS X :: Cocoa
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Natural Language :: English
17
+ Classifier: Operating System :: MacOS :: MacOS X
18
+ Classifier: Programming Language :: Python
19
+ Classifier: Programming Language :: Python :: 3
20
+ Classifier: Programming Language :: Python :: 3 :: Only
21
+ Classifier: Programming Language :: Python :: 3.9
22
+ Classifier: Programming Language :: Python :: 3.10
23
+ Classifier: Programming Language :: Python :: 3.11
24
+ Classifier: Programming Language :: Python :: 3.12
25
+ Classifier: Programming Language :: Python :: 3.13
26
+ Classifier: Programming Language :: Python :: 3.14
27
+ Classifier: Programming Language :: Python :: Implementation :: CPython
28
+ Classifier: Programming Language :: Objective C
29
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
30
+ Classifier: Topic :: Software Development :: User Interfaces
31
+ Requires-Python: >=3.9
32
+ Description-Content-Type: text/x-rst; charset=UTF-8
33
+ Project-URL: Documentation, https://pyobjc.readthedocs.io/en/latest/
34
+ Project-URL: Issue tracker, https://github.com/ronaldoussoren/pyobjc/issues
35
+ Project-URL: Repository, https://github.com/ronaldoussoren/pyobjc
36
+ Requires-Dist: pyobjc-core >=11.0
37
+ Requires-Dist: pyobjc-framework-MetalPerformanceShaders >=11.0
38
+
39
+
40
+ Wrappers for the "MetalPerformanceShadersGraph" framework on macOS.
41
+
42
+ These wrappers don't include documentation, please check Apple's documentation
43
+ for information on how to use this framework and PyObjC's documentation
44
+ for general tips and tricks regarding the translation between Python
45
+ and (Objective-)C frameworks
46
+
47
+
48
+ Project links
49
+ -------------
50
+
51
+ * `Documentation <https://pyobjc.readthedocs.io/en/latest/>`_
52
+
53
+ * `Issue Tracker <https://github.com/ronaldoussoren/pyobjc/issues>`_
54
+
55
+ * `Repository <https://github.com/ronaldoussoren/pyobjc/>`_
56
+
@@ -0,0 +1,7 @@
1
+ MetalPerformanceShadersGraph/__init__.py,sha256=CO31tb-szkhbGarsJ__d3z-FrXV5PQwrjze50qTfVSs,961
2
+ MetalPerformanceShadersGraph/_metadata.py,sha256=DjC8R4bs73NB3vtNy-IJ8Xq_7Jfmszg9AwWzFvnFySE,28926
3
+ pyobjc_framework_MetalPerformanceShadersGraph-11.0.dist-info/METADATA,sha256=YRLfsHKb5N-Dny71WaqDkq6wgEegktzCptoVI82txZ8,2333
4
+ pyobjc_framework_MetalPerformanceShadersGraph-11.0.dist-info/WHEEL,sha256=DZajD4pwLWue70CAfc7YaxT1wLUciNBvN_TTcvXpltE,110
5
+ pyobjc_framework_MetalPerformanceShadersGraph-11.0.dist-info/pyobjc-build-info.txt,sha256=R5YEsJoyZ8GByMQk4k_4WWEg6V4RNO715NMQwx6YaNI,85
6
+ pyobjc_framework_MetalPerformanceShadersGraph-11.0.dist-info/top_level.txt,sha256=jzyLuOPJGzGhRoS5xrMLtXTXoyhGZ5hEe7eJR-Lmluk,29
7
+ pyobjc_framework_MetalPerformanceShadersGraph-11.0.dist-info/RECORD,,
@@ -0,0 +1,6 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.43.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py2-none-any
5
+ Tag: py3-none-any
6
+
@@ -0,0 +1,3 @@
1
+ macOS 15.3 (24D5040f)
2
+ Apple clang version 16.0.0 (clang-1600.0.26.6)
3
+ SDK: macOS 15.2
@@ -0,0 +1 @@
1
+ MetalPerformanceShadersGraph