pyobjc-framework-CoreML 10.3.2__cp313-cp313t-macosx_10_13_universal2.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.
Binary file
CoreML/__init__.py ADDED
@@ -0,0 +1,119 @@
1
+ """
2
+ Python mapping for the CoreML 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 Foundation
13
+ import objc
14
+ from . import _metadata, _CoreML
15
+
16
+ dir_func, getattr_func = objc.createFrameworkDirAndGetattr(
17
+ name="CoreML",
18
+ frameworkIdentifier="com.apple.CoreML",
19
+ frameworkPath=objc.pathForFramework(
20
+ "/System/Library/Frameworks/CoreML.framework"
21
+ ),
22
+ globals_dict=globals(),
23
+ inline_list=None,
24
+ parents=(
25
+ _CoreML,
26
+ Foundation,
27
+ ),
28
+ metadict=_metadata.__dict__,
29
+ )
30
+
31
+ globals()["__dir__"] = dir_func
32
+ globals()["__getattr__"] = getattr_func
33
+
34
+ for clsname in (
35
+ "MLComputePlan",
36
+ "MLComputePlanCost",
37
+ "MLComputePlanDeviceUsage",
38
+ "MLModelStructureNeuralNetwork",
39
+ "MLModelStructurePipeline",
40
+ "MLModelStructureProgram",
41
+ "MLModelStructureProgramArgument",
42
+ "MLModelStructureProgramBinding",
43
+ "MLModelStructureProgramBlock",
44
+ "MLModelStructureProgramFunction",
45
+ "MLModelStructureProgramNamedValueType",
46
+ "MLModelStructureProgramOperation",
47
+ "MLModelStructureProgramValue",
48
+ "MLModelStructureProgramValueType",
49
+ ):
50
+ try:
51
+ objc.lookUpClass(clsname).__objc_final__ = True
52
+ except objc.error:
53
+ pass
54
+
55
+ for cls, sel in (
56
+ ("MLMetricKey", b"init"),
57
+ ("MLMetricKey", b"new"),
58
+ ("MLModelStructureProgramValue", b"init"),
59
+ ("MLModelStructureProgramValue", b"new"),
60
+ ("MLGPUComputeDevice", b"init"),
61
+ ("MLGPUComputeDevice", b"new"),
62
+ ("MLComputePlanDeviceUsage", b"init"),
63
+ ("MLComputePlanDeviceUsage", b"new"),
64
+ ("MLCPUComputeDevice", b"init"),
65
+ ("MLCPUComputeDevice", b"new"),
66
+ ("MLModelStructure", b"init"),
67
+ ("MLModelStructure", b"new"),
68
+ ("MLUpdateProgressHandlers", b"init"),
69
+ ("MLUpdateProgressHandlers", b"new"),
70
+ ("MLModelCollection", b"init"),
71
+ ("MLModelCollection", b"new"),
72
+ ("MLModelStructureProgramNamedValueType", b"init"),
73
+ ("MLModelStructureProgramNamedValueType", b"new"),
74
+ ("MLUpdateTask", b"init"),
75
+ ("MLUpdateTask", b"new"),
76
+ ("MLModelCollectionEntry", b"init"),
77
+ ("MLModelCollectionEntry", b"new"),
78
+ ("MLModelStructureProgramFunction", b"init"),
79
+ ("MLModelStructureProgramFunction", b"new"),
80
+ ("MLModelStructureProgram", b"init"),
81
+ ("MLModelStructureProgram", b"new"),
82
+ ("MLComputePlan", b"init"),
83
+ ("MLComputePlan", b"new"),
84
+ ("MLParameterKey", b"init"),
85
+ ("MLParameterKey", b"new"),
86
+ ("MLModelStructureProgramBinding", b"init"),
87
+ ("MLModelStructureProgramBinding", b"new"),
88
+ ("MLModelAsset", b"init"),
89
+ ("MLModelAsset", b"new"),
90
+ ("MLModelStructureProgramArgument", b"init"),
91
+ ("MLModelStructureProgramArgument", b"new"),
92
+ ("MLModelStructureProgramOperation", b"init"),
93
+ ("MLModelStructureProgramOperation", b"new"),
94
+ ("MLComputePlanCost", b"init"),
95
+ ("MLComputePlanCost", b"new"),
96
+ ("MLModelStructureNeuralNetwork", b"init"),
97
+ ("MLModelStructureNeuralNetwork", b"new"),
98
+ ("MLNeuralEngineComputeDevice", b"init"),
99
+ ("MLNeuralEngineComputeDevice", b"new"),
100
+ ("MLTask", b"init"),
101
+ ("MLTask", b"new"),
102
+ ("MLModelStructureNeuralNetworkLayer", b"init"),
103
+ ("MLModelStructureNeuralNetworkLayer", b"new"),
104
+ ("MLKey", b"init"),
105
+ ("MLKey", b"new"),
106
+ ("MLModelStructureProgramBlock", b"init"),
107
+ ("MLModelStructureProgramBlock", b"new"),
108
+ ("MLImageConstraint", b"init"),
109
+ ("MLModelStructurePipeline", b"init"),
110
+ ("MLModelStructurePipeline", b"new"),
111
+ ("MLModelStructureProgramValueType", b"init"),
112
+ ("MLModelStructureProgramValueType", b"new"),
113
+ ):
114
+ objc.registerUnavailableMethod(cls, sel)
115
+
116
+ del sys.modules["CoreML._metadata"]
117
+
118
+
119
+ globals().pop("_setup")()
CoreML/_metadata.py ADDED
@@ -0,0 +1,706 @@
1
+ # This file is generated by objective.metadata
2
+ #
3
+ # Last update: Sat May 18 09:20:28 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 = """$MLFeatureValueImageOptionCropAndScale$MLFeatureValueImageOptionCropRect$MLModelAuthorKey$MLModelCollectionDidChangeNotification$MLModelCreatorDefinedKey$MLModelDescriptionKey$MLModelErrorDomain$MLModelLicenseKey$MLModelVersionStringKey$"""
34
+ enums = """$MLComputeUnitsAll@2$MLComputeUnitsCPUAndGPU@1$MLComputeUnitsCPUAndNeuralEngine@3$MLComputeUnitsCPUOnly@0$MLFeatureTypeDictionary@6$MLFeatureTypeDouble@2$MLFeatureTypeImage@4$MLFeatureTypeInt64@1$MLFeatureTypeInvalid@0$MLFeatureTypeMultiArray@5$MLFeatureTypeSequence@7$MLFeatureTypeString@3$MLImageSizeConstraintTypeEnumerated@2$MLImageSizeConstraintTypeRange@3$MLImageSizeConstraintTypeUnspecified@0$MLModelErrorCustomLayer@4$MLModelErrorCustomModel@5$MLModelErrorFeatureType@1$MLModelErrorGeneric@0$MLModelErrorIO@3$MLModelErrorModelCollection@10$MLModelErrorModelDecryption@9$MLModelErrorModelDecryptionKeyFetch@8$MLModelErrorParameters@7$MLModelErrorPredictionCancelled@11$MLModelErrorUpdate@6$MLMultiArrayDataTypeDouble@65600$MLMultiArrayDataTypeFloat@65568$MLMultiArrayDataTypeFloat16@65552$MLMultiArrayDataTypeFloat32@65568$MLMultiArrayDataTypeFloat64@65600$MLMultiArrayDataTypeInt32@131104$MLMultiArrayShapeConstraintTypeEnumerated@2$MLMultiArrayShapeConstraintTypeRange@3$MLMultiArrayShapeConstraintTypeUnspecified@1$MLReshapeFrequencyHintFrequent@0$MLReshapeFrequencyHintInfrequent@1$MLTaskStateCancelling@3$MLTaskStateCompleted@4$MLTaskStateFailed@5$MLTaskStateRunning@2$MLTaskStateSuspended@1$MLUpdateProgressEventEpochEnd@2$MLUpdateProgressEventMiniBatchEnd@4$MLUpdateProgressEventTrainingBegin@1$"""
35
+ misc.update(
36
+ {
37
+ "MLMultiArrayDataType": NewType("MLMultiArrayDataType", int),
38
+ "MLMultiArrayShapeConstraintType": NewType(
39
+ "MLMultiArrayShapeConstraintType", int
40
+ ),
41
+ "MLImageSizeConstraintType": NewType("MLImageSizeConstraintType", int),
42
+ "MLTaskState": NewType("MLTaskState", int),
43
+ "MLUpdateProgressEvent": NewType("MLUpdateProgressEvent", int),
44
+ "MLFeatureType": NewType("MLFeatureType", int),
45
+ "MLModelError": NewType("MLModelError", int),
46
+ "MLComputeUnits": NewType("MLComputeUnits", int),
47
+ "MLReshapeFrequencyHint": NewType("MLReshapeFrequencyHint", int),
48
+ }
49
+ )
50
+ misc.update(
51
+ {
52
+ "MLFeatureValueImageOption": NewType("MLFeatureValueImageOption", str),
53
+ "MLModelMetadataKey": NewType("MLModelMetadataKey", str),
54
+ }
55
+ )
56
+ misc.update({})
57
+ functions = {"MLAllComputeDevices": (b"@",)}
58
+ r = objc.registerMetaDataForSelector
59
+ objc._updatingMetadata(True)
60
+ try:
61
+ r(
62
+ b"MLArrayBatchProvider",
63
+ b"initWithDictionary:error:",
64
+ {"arguments": {3: {"type_modifier": b"o"}}},
65
+ )
66
+ r(
67
+ b"MLComputePlan",
68
+ b"loadContentsOfURL:configuration:completionHandler:",
69
+ {
70
+ "arguments": {
71
+ 4: {
72
+ "callable": {
73
+ "retval": {"type": b"v"},
74
+ "arguments": {
75
+ 0: {"type": b"^v"},
76
+ 1: {"type": b"@"},
77
+ 2: {"type": b"@"},
78
+ },
79
+ }
80
+ }
81
+ }
82
+ },
83
+ )
84
+ r(
85
+ b"MLComputePlan",
86
+ b"loadModelAsset:configuration:completionHandler:",
87
+ {
88
+ "arguments": {
89
+ 4: {
90
+ "callable": {
91
+ "retval": {"type": b"v"},
92
+ "arguments": {
93
+ 0: {"type": b"^v"},
94
+ 1: {"type": b"@"},
95
+ 2: {"type": b"@"},
96
+ },
97
+ }
98
+ }
99
+ }
100
+ },
101
+ )
102
+ r(
103
+ b"MLDictionaryFeatureProvider",
104
+ b"initWithDictionary:error:",
105
+ {"arguments": {3: {"type_modifier": b"o"}}},
106
+ )
107
+ r(b"MLFeatureDescription", b"isAllowedValue:", {"retval": {"type": "Z"}})
108
+ r(b"MLFeatureDescription", b"isOptional", {"retval": {"type": "Z"}})
109
+ r(b"MLFeatureDescription", b"setOptional:", {"arguments": {2: {"type": "Z"}}})
110
+ r(
111
+ b"MLFeatureValue",
112
+ b"featureValueWithCGImage:constraint:options:error:",
113
+ {"arguments": {5: {"type_modifier": b"o"}}},
114
+ )
115
+ r(
116
+ b"MLFeatureValue",
117
+ b"featureValueWithCGImage:orientation:constraint:options:error:",
118
+ {"arguments": {6: {"type_modifier": b"o"}}},
119
+ )
120
+ r(
121
+ b"MLFeatureValue",
122
+ b"featureValueWithCGImage:orientation:pixelsWide:pixelsHigh:pixelFormatType:options:error:",
123
+ {"arguments": {8: {"type_modifier": b"o"}}},
124
+ )
125
+ r(
126
+ b"MLFeatureValue",
127
+ b"featureValueWithCGImage:pixelsWide:pixelsHigh:pixelFormatType:options:error:",
128
+ {"arguments": {7: {"type_modifier": b"o"}}},
129
+ )
130
+ r(
131
+ b"MLFeatureValue",
132
+ b"featureValueWithDictionary:error:",
133
+ {"arguments": {3: {"type_modifier": b"o"}}},
134
+ )
135
+ r(
136
+ b"MLFeatureValue",
137
+ b"featureValueWithImageAtURL:constraint:options:error:",
138
+ {"arguments": {5: {"type_modifier": b"o"}}},
139
+ )
140
+ r(
141
+ b"MLFeatureValue",
142
+ b"featureValueWithImageAtURL:orientation:constraint:options:error:",
143
+ {"arguments": {6: {"type_modifier": b"o"}}},
144
+ )
145
+ r(
146
+ b"MLFeatureValue",
147
+ b"featureValueWithImageAtURL:orientation:pixelsWide:pixelsHigh:pixelFormatType:options:error:",
148
+ {"arguments": {8: {"type_modifier": b"o"}}},
149
+ )
150
+ r(
151
+ b"MLFeatureValue",
152
+ b"featureValueWithImageAtURL:pixelsWide:pixelsHigh:pixelFormatType:options:error:",
153
+ {"arguments": {7: {"type_modifier": b"o"}}},
154
+ )
155
+ r(b"MLFeatureValue", b"isEqualToFeatureValue:", {"retval": {"type": "Z"}})
156
+ r(b"MLFeatureValue", b"isUndefined", {"retval": {"type": "Z"}})
157
+ r(
158
+ b"MLModel",
159
+ b"compileModelAtURL:completionHandler:",
160
+ {
161
+ "arguments": {
162
+ 3: {
163
+ "callable": {
164
+ "retval": {"type": b"v"},
165
+ "arguments": {
166
+ 0: {"type": b"^v"},
167
+ 1: {"type": b"@"},
168
+ 2: {"type": b"@"},
169
+ },
170
+ }
171
+ }
172
+ }
173
+ },
174
+ )
175
+ r(
176
+ b"MLModel",
177
+ b"compileModelAtURL:error:",
178
+ {"arguments": {3: {"type_modifier": b"o"}}},
179
+ )
180
+ r(
181
+ b"MLModel",
182
+ b"loadContentsOfURL:configuration:completionHandler:",
183
+ {
184
+ "arguments": {
185
+ 4: {
186
+ "callable": {
187
+ "retval": {"type": b"v"},
188
+ "arguments": {
189
+ 0: {"type": b"^v"},
190
+ 1: {"type": b"@"},
191
+ 2: {"type": b"@"},
192
+ },
193
+ }
194
+ }
195
+ }
196
+ },
197
+ )
198
+ r(
199
+ b"MLModel",
200
+ b"loadModelAsset:configuration:completionHandler:",
201
+ {
202
+ "arguments": {
203
+ 4: {
204
+ "callable": {
205
+ "retval": {"type": b"v"},
206
+ "arguments": {
207
+ 0: {"type": b"^v"},
208
+ 1: {"type": b"@"},
209
+ 2: {"type": b"@"},
210
+ },
211
+ }
212
+ }
213
+ }
214
+ },
215
+ )
216
+ r(
217
+ b"MLModel",
218
+ b"modelWithContentsOfURL:configuration:error:",
219
+ {"arguments": {4: {"type_modifier": b"o"}}},
220
+ )
221
+ r(
222
+ b"MLModel",
223
+ b"modelWithContentsOfURL:error:",
224
+ {"arguments": {3: {"type_modifier": b"o"}}},
225
+ )
226
+ r(
227
+ b"MLModel",
228
+ b"parameterValueForKey:error:",
229
+ {"arguments": {3: {"type_modifier": b"o"}}},
230
+ )
231
+ r(
232
+ b"MLModel",
233
+ b"predictionFromFeatures:completionHandler:",
234
+ {
235
+ "arguments": {
236
+ 3: {
237
+ "callable": {
238
+ "retval": {"type": b"v"},
239
+ "arguments": {
240
+ 0: {"type": b"^v"},
241
+ 1: {"type": b"@"},
242
+ 2: {"type": b"@"},
243
+ },
244
+ }
245
+ }
246
+ }
247
+ },
248
+ )
249
+ r(
250
+ b"MLModel",
251
+ b"predictionFromFeatures:error:",
252
+ {"arguments": {3: {"type_modifier": b"o"}}},
253
+ )
254
+ r(
255
+ b"MLModel",
256
+ b"predictionFromFeatures:options:completionHandler:",
257
+ {
258
+ "arguments": {
259
+ 4: {
260
+ "callable": {
261
+ "retval": {"type": b"v"},
262
+ "arguments": {
263
+ 0: {"type": b"^v"},
264
+ 1: {"type": b"@"},
265
+ 2: {"type": b"@"},
266
+ },
267
+ }
268
+ }
269
+ }
270
+ },
271
+ )
272
+ r(
273
+ b"MLModel",
274
+ b"predictionFromFeatures:options:error:",
275
+ {"arguments": {4: {"type_modifier": b"o"}}},
276
+ )
277
+ r(
278
+ b"MLModel",
279
+ b"predictionsFromBatch:error:",
280
+ {"arguments": {3: {"type_modifier": b"o"}}},
281
+ )
282
+ r(
283
+ b"MLModel",
284
+ b"predictionsFromBatch:options:error:",
285
+ {"arguments": {4: {"type_modifier": b"o"}}},
286
+ )
287
+ r(
288
+ b"MLModelAsset",
289
+ b"modelAssetWithSpecificationData:error:",
290
+ {"arguments": {3: {"type_modifier": b"o"}}},
291
+ )
292
+ r(
293
+ b"MLModelCollection",
294
+ b"beginAccessingModelCollectionWithIdentifier:completionHandler:",
295
+ {
296
+ "arguments": {
297
+ 3: {
298
+ "callable": {
299
+ "retval": {"type": b"v"},
300
+ "arguments": {
301
+ 0: {"type": b"^v"},
302
+ 1: {"type": b"@"},
303
+ 2: {"type": b"@"},
304
+ },
305
+ }
306
+ }
307
+ }
308
+ },
309
+ )
310
+ r(
311
+ b"MLModelCollection",
312
+ b"endAccessingModelCollectionWithIdentifier:completionHandler:",
313
+ {
314
+ "arguments": {
315
+ 3: {
316
+ "callable": {
317
+ "retval": {"type": b"v"},
318
+ "arguments": {
319
+ 0: {"type": b"^v"},
320
+ 1: {"type": b"Z"},
321
+ 2: {"type": b"@"},
322
+ },
323
+ }
324
+ }
325
+ }
326
+ },
327
+ )
328
+ r(
329
+ b"MLModelCollectionEntry",
330
+ b"isEqualToModelCollectionEntry:",
331
+ {"retval": {"type": b"Z"}},
332
+ )
333
+ r(
334
+ b"MLModelConfiguration",
335
+ b"allowLowPrecisionAccumulationOnGPU",
336
+ {"retval": {"type": "Z"}},
337
+ )
338
+ r(
339
+ b"MLModelConfiguration",
340
+ b"setAllowLowPrecisionAccumulationOnGPU:",
341
+ {"arguments": {2: {"type": "Z"}}},
342
+ )
343
+ r(b"MLModelDescription", b"isUpdatable", {"retval": {"type": b"Z"}})
344
+ r(
345
+ b"MLModelStructure",
346
+ b"loadContentsOfURL:completionHandler:",
347
+ {
348
+ "arguments": {
349
+ 3: {
350
+ "callable": {
351
+ "retval": {"type": b"v"},
352
+ "arguments": {
353
+ 0: {"type": b"^v"},
354
+ 1: {"type": b"@"},
355
+ 2: {"type": b"@"},
356
+ },
357
+ }
358
+ }
359
+ }
360
+ },
361
+ )
362
+ r(
363
+ b"MLModelStructure",
364
+ b"loadModelAsset:completionHandler:",
365
+ {
366
+ "arguments": {
367
+ 3: {
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(b"MLMultiArray", b"dataPointer", {"retval": {"c_array_of_variable_length": True}})
381
+ r(
382
+ b"MLMultiArray",
383
+ b"getBytesWithHandler:",
384
+ {
385
+ "arguments": {
386
+ 2: {
387
+ "callable": {
388
+ "retval": {"type": b"v"},
389
+ "arguments": {
390
+ 0: {"type": b"^v"},
391
+ 1: {"type": b"n^v", "c_array_length_in_arg": 2},
392
+ 2: {"type": b"q"},
393
+ },
394
+ }
395
+ },
396
+ 7: {"type_modifier": b"o"},
397
+ }
398
+ },
399
+ )
400
+ r(
401
+ b"MLMultiArray",
402
+ b"getMutableBytesWithHandler:",
403
+ {
404
+ "arguments": {
405
+ 2: {
406
+ "callable": {
407
+ "retval": {"type": b"v"},
408
+ "arguments": {
409
+ 0: {"type": b"^v"},
410
+ 1: {"type": b"N^v", "c_array_length_in_arg": 2},
411
+ 2: {"type": b"q"},
412
+ 3: {"type": b"@"},
413
+ },
414
+ }
415
+ },
416
+ 7: {"type_modifier": b"o"},
417
+ }
418
+ },
419
+ )
420
+ r(
421
+ b"MLMultiArray",
422
+ b"initWithDataPointer:shape:dataType:strides:deallocator:error:",
423
+ {
424
+ "arguments": {
425
+ 2: {"type_modifier": b"n", "c_array_of_variable_length": True},
426
+ 6: {
427
+ "callable": {
428
+ "retval": {"type": b"v"},
429
+ "arguments": {0: {"type": b"^v"}, 1: {"type": b"^v"}},
430
+ }
431
+ },
432
+ 7: {"type_modifier": b"o"},
433
+ }
434
+ },
435
+ )
436
+ r(
437
+ b"MLMultiArray",
438
+ b"initWithShape:dataType:error:",
439
+ {"arguments": {4: {"type_modifier": b"o"}}},
440
+ )
441
+ r(b"MLPredictionOptions", b"setUsesCPUOnly:", {"arguments": {2: {"type": "Z"}}})
442
+ r(b"MLPredictionOptions", b"usesCPUOnly", {"retval": {"type": "Z"}})
443
+ r(
444
+ b"MLUpdateProgressHandlers",
445
+ b"initForEvents:progressHandler:completionHandler:",
446
+ {
447
+ "arguments": {
448
+ 3: {
449
+ "callable": {
450
+ "retval": {"type": b"v"},
451
+ "arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
452
+ }
453
+ },
454
+ 4: {
455
+ "callable": {
456
+ "retval": {"type": b"v"},
457
+ "arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
458
+ }
459
+ },
460
+ }
461
+ },
462
+ )
463
+ r(
464
+ b"MLUpdateTask",
465
+ b"updateTaskForModelAtURL:trainingData:completionHandler:error:",
466
+ {
467
+ "arguments": {
468
+ 4: {
469
+ "callable": {
470
+ "retval": {"type": b"v"},
471
+ "arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
472
+ }
473
+ },
474
+ 5: {"type_modifier": b"o"},
475
+ }
476
+ },
477
+ )
478
+ r(
479
+ b"MLUpdateTask",
480
+ b"updateTaskForModelAtURL:trainingData:configuration:completionHandler:error:",
481
+ {
482
+ "arguments": {
483
+ 5: {
484
+ "callable": {
485
+ "retval": {"type": b"v"},
486
+ "arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
487
+ }
488
+ },
489
+ 6: {"type_modifier": b"o"},
490
+ }
491
+ },
492
+ )
493
+ r(
494
+ b"MLUpdateTask",
495
+ b"updateTaskForModelAtURL:trainingData:configuration:progressHandlers:error:",
496
+ {
497
+ "arguments": {
498
+ 5: {
499
+ "callable": {
500
+ "retval": {"type": b"v"},
501
+ "arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
502
+ }
503
+ },
504
+ 6: {"type_modifier": b"o"},
505
+ }
506
+ },
507
+ )
508
+ r(
509
+ b"MLUpdateTask",
510
+ b"updateTaskForModelAtURL:trainingData:progressHandlers:error:",
511
+ {"arguments": {5: {"type_modifier": b"o"}}},
512
+ )
513
+ r(b"NSObject", b"count", {"required": True, "retval": {"type": "q"}})
514
+ r(
515
+ b"NSObject",
516
+ b"encodeToCommandBuffer:inputs:outputs:error:",
517
+ {
518
+ "required": False,
519
+ "retval": {"type": "Z"},
520
+ "arguments": {
521
+ 2: {"type": b"@"},
522
+ 3: {"type": b"@"},
523
+ 4: {"type": b"@"},
524
+ 5: {"type": "^@", "type_modifier": b"o"},
525
+ },
526
+ },
527
+ )
528
+ r(
529
+ b"NSObject",
530
+ b"evaluateOnCPUWithInputs:outputs:error:",
531
+ {
532
+ "required": True,
533
+ "retval": {"type": "Z"},
534
+ "arguments": {
535
+ 2: {"type": b"@"},
536
+ 3: {"type": b"@"},
537
+ 4: {"type": "^@", "type_modifier": b"o"},
538
+ },
539
+ },
540
+ )
541
+ r(b"NSObject", b"featureNames", {"required": True, "retval": {"type": b"@"}})
542
+ r(
543
+ b"NSObject",
544
+ b"featureProviderAtIndex:",
545
+ {"required": False, "retval": {"type": b"@"}, "arguments": {2: {"type": b"q"}}},
546
+ )
547
+ r(
548
+ b"NSObject",
549
+ b"featureProviderCount",
550
+ {"required": False, "retval": {"type": b"q"}},
551
+ )
552
+ r(
553
+ b"NSObject",
554
+ b"featureValueForName:",
555
+ {"required": True, "retval": {"type": b"@"}, "arguments": {2: {"type": b"@"}}},
556
+ )
557
+ r(
558
+ b"NSObject",
559
+ b"featuresAtIndex:",
560
+ {"required": True, "retval": {"type": b"@"}, "arguments": {2: {"type": "q"}}},
561
+ )
562
+ r(
563
+ b"NSObject",
564
+ b"initWithModelDescription:parameterDictionary:error:",
565
+ {
566
+ "required": True,
567
+ "retval": {"type": b"@"},
568
+ "arguments": {
569
+ 2: {"type": b"@"},
570
+ 3: {"type": b"@"},
571
+ 4: {"type": "^@", "type_modifier": b"o"},
572
+ },
573
+ },
574
+ )
575
+ r(
576
+ b"NSObject",
577
+ b"initWithParameterDictionary:error:",
578
+ {
579
+ "required": True,
580
+ "retval": {"type": b"@"},
581
+ "arguments": {2: {"type": b"@"}, 3: {"type": "^@", "type_modifier": b"o"}},
582
+ },
583
+ )
584
+ r(
585
+ b"NSObject",
586
+ b"outputShapesForInputShapes:error:",
587
+ {
588
+ "required": True,
589
+ "retval": {"type": b"@"},
590
+ "arguments": {2: {"type": b"@"}, 3: {"type": "^@", "type_modifier": b"o"}},
591
+ },
592
+ )
593
+ r(
594
+ b"NSObject",
595
+ b"predictionFromFeatures:options:error:",
596
+ {
597
+ "required": True,
598
+ "retval": {"type": b"@"},
599
+ "arguments": {
600
+ 2: {"type": b"@"},
601
+ 3: {"type": b"@"},
602
+ 4: {"type": "^@", "type_modifier": b"o"},
603
+ },
604
+ },
605
+ )
606
+ r(
607
+ b"NSObject",
608
+ b"predictionsFromBatch:options:error:",
609
+ {
610
+ "required": False,
611
+ "retval": {"type": b"@"},
612
+ "arguments": {
613
+ 2: {"type": b"@"},
614
+ 3: {"type": b"@"},
615
+ 4: {"type": "^@", "type_modifier": b"o"},
616
+ },
617
+ },
618
+ )
619
+ r(
620
+ b"NSObject",
621
+ b"setWeightData:error:",
622
+ {
623
+ "required": True,
624
+ "retval": {"type": "Z"},
625
+ "arguments": {2: {"type": b"@"}, 3: {"type": "^@", "type_modifier": b"o"}},
626
+ },
627
+ )
628
+ r(
629
+ b"NSObject",
630
+ b"writeToURL:error:",
631
+ {
632
+ "required": True,
633
+ "retval": {"type": b"Z"},
634
+ "arguments": {2: {"type": b"@"}, 3: {"type": "o^@", "type_modifier": b"o"}},
635
+ },
636
+ )
637
+ r(b"null", b"allowLowPrecisionAccumulationOnGPU", {"retval": {"type": b"Z"}})
638
+ r(
639
+ b"null",
640
+ b"featureValueWithCGImage:constraint:options:error:",
641
+ {"arguments": {5: {"type_modifier": b"o"}}},
642
+ )
643
+ r(
644
+ b"null",
645
+ b"featureValueWithCGImage:orientation:constraint:options:error:",
646
+ {"arguments": {6: {"type_modifier": b"o"}}},
647
+ )
648
+ r(
649
+ b"null",
650
+ b"featureValueWithCGImage:orientation:pixelsWide:pixelsHigh:pixelFormatType:options:error:",
651
+ {"arguments": {8: {"type_modifier": b"o"}}},
652
+ )
653
+ r(
654
+ b"null",
655
+ b"featureValueWithCGImage:pixelsWide:pixelsHigh:pixelFormatType:options:error:",
656
+ {"arguments": {7: {"type_modifier": b"o"}}},
657
+ )
658
+ r(
659
+ b"null",
660
+ b"featureValueWithImageAtURL:constraint:options:error:",
661
+ {"arguments": {5: {"type_modifier": b"o"}}},
662
+ )
663
+ r(
664
+ b"null",
665
+ b"featureValueWithImageAtURL:orientation:constraint:options:error:",
666
+ {"arguments": {6: {"type_modifier": b"o"}}},
667
+ )
668
+ r(
669
+ b"null",
670
+ b"featureValueWithImageAtURL:orientation:pixelsWide:pixelsHigh:pixelFormatType:options:error:",
671
+ {"arguments": {8: {"type_modifier": b"o"}}},
672
+ )
673
+ r(
674
+ b"null",
675
+ b"featureValueWithImageAtURL:pixelsWide:pixelsHigh:pixelFormatType:options:error:",
676
+ {"arguments": {7: {"type_modifier": b"o"}}},
677
+ )
678
+ r(b"null", b"isUpdatable", {"retval": {"type": b"Z"}})
679
+ r(
680
+ b"null",
681
+ b"setAllowLowPrecisionAccumulationOnGPU:",
682
+ {"arguments": {2: {"type": b"Z"}}},
683
+ )
684
+ finally:
685
+ objc._updatingMetadata(False)
686
+
687
+ objc.registerNewKeywordsFromSelector(
688
+ "MLArrayBatchProvider", b"initWithDictionary:error:"
689
+ )
690
+ objc.registerNewKeywordsFromSelector(
691
+ "MLArrayBatchProvider", b"initWithFeatureProviderArray:"
692
+ )
693
+ objc.registerNewKeywordsFromSelector(
694
+ "MLDictionaryFeatureProvider", b"initWithDictionary:error:"
695
+ )
696
+ objc.registerNewKeywordsFromSelector(
697
+ "MLMultiArray", b"initWithDataPointer:shape:dataType:strides:deallocator:error:"
698
+ )
699
+ objc.registerNewKeywordsFromSelector("MLMultiArray", b"initWithPixelBuffer:shape:")
700
+ objc.registerNewKeywordsFromSelector("MLMultiArray", b"initWithShape:dataType:error:")
701
+ objc.registerNewKeywordsFromSelector(
702
+ "MLUpdateProgressHandlers", b"initForEvents:progressHandler:completionHandler:"
703
+ )
704
+ expressions = {}
705
+
706
+ # END OF FILE
@@ -0,0 +1,56 @@
1
+ Metadata-Version: 2.1
2
+ Name: pyobjc-framework-CoreML
3
+ Version: 10.3.2
4
+ Summary: Wrappers for the framework CoreML 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,CoreML
10
+ Platform: MacOS X (>=10.13)
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.8
22
+ Classifier: Programming Language :: Python :: 3.9
23
+ Classifier: Programming Language :: Python :: 3.10
24
+ Classifier: Programming Language :: Python :: 3.11
25
+ Classifier: Programming Language :: Python :: 3.12
26
+ Classifier: Programming Language :: Python :: 3.13
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.8
32
+ Description-Content-Type: text/x-rst; charset=UTF-8
33
+ Requires-Dist: pyobjc-core>=10.3.2
34
+ Requires-Dist: pyobjc-framework-Cocoa>=10.3.2
35
+ Project-URL: Documentation, https://pyobjc.readthedocs.io/en/latest/
36
+ Project-URL: Issue tracker, https://github.com/ronaldoussoren/pyobjc/issues
37
+ Project-URL: Repository, https://github.com/ronaldoussoren/pyobjc
38
+
39
+
40
+ Wrappers for the "CoreML" 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
+ CoreML/_CoreML.cpython-313t-darwin.so,sha256=H_Jg46eIGQyxMQujl2pZrGOAswGwBtIbqKiYfC_IN3M,84384
2
+ CoreML/__init__.py,sha256=WtrPp1-NQOluG3UxSL3IrBU3pFhl5AbwDM4yMnT6DxY,4179
3
+ CoreML/_metadata.py,sha256=V5haAt4Ppd0VmCK5DEWiCVR6dWQw75eFdSQR_ji0XIo,22554
4
+ pyobjc_framework_CoreML-10.3.2.dist-info/METADATA,sha256=Q2aIAUdd86G3_V2m8DbJ9P8dbYYQhh-6IhpmtuEPtEU,2230
5
+ pyobjc_framework_CoreML-10.3.2.dist-info/WHEEL,sha256=XjtjjmgeqVAP8nJhv4oiI8QkipRAek_0YAWGDzOQ9vs,116
6
+ pyobjc_framework_CoreML-10.3.2.dist-info/top_level.txt,sha256=Uu3gkPlQDO5j-W2w8qzMWN9i2fGd__ZWct1flwsvhIc,7
7
+ pyobjc_framework_CoreML-10.3.2.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (75.6.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp313-cp313t-macosx_10_13_universal2
5
+