pyobjc-framework-CoreML 12.2__cp315-cp315t-macosx_10_15_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.
- CoreML/_CoreML.cpython-315t-darwin.so +0 -0
- CoreML/__init__.py +120 -0
- CoreML/_metadata.py +885 -0
- pyobjc_framework_coreml-12.2.dist-info/METADATA +68 -0
- pyobjc_framework_coreml-12.2.dist-info/RECORD +8 -0
- pyobjc_framework_coreml-12.2.dist-info/WHEEL +5 -0
- pyobjc_framework_coreml-12.2.dist-info/pyobjc-build-info.txt +3 -0
- pyobjc_framework_coreml-12.2.dist-info/top_level.txt +1 -0
|
Binary file
|
CoreML/__init__.py
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
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
|
+
"MLState",
|
|
50
|
+
):
|
|
51
|
+
try:
|
|
52
|
+
objc.lookUpClass(clsname).__objc_final__ = True
|
|
53
|
+
except objc.error:
|
|
54
|
+
pass
|
|
55
|
+
|
|
56
|
+
for cls, sel in (
|
|
57
|
+
("MLMetricKey", b"init"),
|
|
58
|
+
("MLMetricKey", b"new"),
|
|
59
|
+
("MLModelStructureProgramValue", b"init"),
|
|
60
|
+
("MLModelStructureProgramValue", b"new"),
|
|
61
|
+
("MLGPUComputeDevice", b"init"),
|
|
62
|
+
("MLGPUComputeDevice", b"new"),
|
|
63
|
+
("MLComputePlanDeviceUsage", b"init"),
|
|
64
|
+
("MLComputePlanDeviceUsage", b"new"),
|
|
65
|
+
("MLCPUComputeDevice", b"init"),
|
|
66
|
+
("MLCPUComputeDevice", b"new"),
|
|
67
|
+
("MLModelStructure", b"init"),
|
|
68
|
+
("MLModelStructure", b"new"),
|
|
69
|
+
("MLUpdateProgressHandlers", b"init"),
|
|
70
|
+
("MLUpdateProgressHandlers", b"new"),
|
|
71
|
+
("MLModelCollection", b"init"),
|
|
72
|
+
("MLModelCollection", b"new"),
|
|
73
|
+
("MLModelStructureProgramNamedValueType", b"init"),
|
|
74
|
+
("MLModelStructureProgramNamedValueType", b"new"),
|
|
75
|
+
("MLUpdateTask", b"init"),
|
|
76
|
+
("MLUpdateTask", b"new"),
|
|
77
|
+
("MLModelCollectionEntry", b"init"),
|
|
78
|
+
("MLModelCollectionEntry", b"new"),
|
|
79
|
+
("MLModelStructureProgramFunction", b"init"),
|
|
80
|
+
("MLModelStructureProgramFunction", b"new"),
|
|
81
|
+
("MLModelStructureProgram", b"init"),
|
|
82
|
+
("MLModelStructureProgram", b"new"),
|
|
83
|
+
("MLComputePlan", b"init"),
|
|
84
|
+
("MLComputePlan", b"new"),
|
|
85
|
+
("MLParameterKey", b"init"),
|
|
86
|
+
("MLParameterKey", b"new"),
|
|
87
|
+
("MLModelStructureProgramBinding", b"init"),
|
|
88
|
+
("MLModelStructureProgramBinding", b"new"),
|
|
89
|
+
("MLModelAsset", b"init"),
|
|
90
|
+
("MLModelAsset", b"new"),
|
|
91
|
+
("MLModelStructureProgramArgument", b"init"),
|
|
92
|
+
("MLModelStructureProgramArgument", b"new"),
|
|
93
|
+
("MLModelStructureProgramOperation", b"init"),
|
|
94
|
+
("MLModelStructureProgramOperation", b"new"),
|
|
95
|
+
("MLComputePlanCost", b"init"),
|
|
96
|
+
("MLComputePlanCost", b"new"),
|
|
97
|
+
("MLModelStructureNeuralNetwork", b"init"),
|
|
98
|
+
("MLModelStructureNeuralNetwork", b"new"),
|
|
99
|
+
("MLNeuralEngineComputeDevice", b"init"),
|
|
100
|
+
("MLNeuralEngineComputeDevice", b"new"),
|
|
101
|
+
("MLTask", b"init"),
|
|
102
|
+
("MLTask", b"new"),
|
|
103
|
+
("MLModelStructureNeuralNetworkLayer", b"init"),
|
|
104
|
+
("MLModelStructureNeuralNetworkLayer", b"new"),
|
|
105
|
+
("MLKey", b"init"),
|
|
106
|
+
("MLKey", b"new"),
|
|
107
|
+
("MLModelStructureProgramBlock", b"init"),
|
|
108
|
+
("MLModelStructureProgramBlock", b"new"),
|
|
109
|
+
("MLImageConstraint", b"init"),
|
|
110
|
+
("MLModelStructurePipeline", b"init"),
|
|
111
|
+
("MLModelStructurePipeline", b"new"),
|
|
112
|
+
("MLModelStructureProgramValueType", b"init"),
|
|
113
|
+
("MLModelStructureProgramValueType", b"new"),
|
|
114
|
+
):
|
|
115
|
+
objc.registerUnavailableMethod(cls, sel)
|
|
116
|
+
|
|
117
|
+
del sys.modules["CoreML._metadata"]
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
globals().pop("_setup")()
|
CoreML/_metadata.py
ADDED
|
@@ -0,0 +1,885 @@
|
|
|
1
|
+
# This file is generated by objective.metadata
|
|
2
|
+
#
|
|
3
|
+
# Last update: Thu May 28 21:26:32 2026
|
|
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$MLFeatureTypeState@8$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$MLMultiArrayDataTypeInt8@131080$MLMultiArrayShapeConstraintTypeEnumerated@2$MLMultiArrayShapeConstraintTypeRange@3$MLMultiArrayShapeConstraintTypeUnspecified@1$MLReshapeFrequencyHintFrequent@0$MLReshapeFrequencyHintInfrequent@1$MLSpecializationStrategyDefault@0$MLSpecializationStrategyFastPrediction@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
|
+
"MLSpecializationStrategy": NewType("MLSpecializationStrategy", int),
|
|
42
|
+
"MLImageSizeConstraintType": NewType("MLImageSizeConstraintType", int),
|
|
43
|
+
"MLTaskState": NewType("MLTaskState", int),
|
|
44
|
+
"MLUpdateProgressEvent": NewType("MLUpdateProgressEvent", int),
|
|
45
|
+
"MLFeatureType": NewType("MLFeatureType", int),
|
|
46
|
+
"MLModelError": NewType("MLModelError", int),
|
|
47
|
+
"MLComputeUnits": NewType("MLComputeUnits", int),
|
|
48
|
+
"MLReshapeFrequencyHint": NewType("MLReshapeFrequencyHint", int),
|
|
49
|
+
}
|
|
50
|
+
)
|
|
51
|
+
misc.update(
|
|
52
|
+
{
|
|
53
|
+
"MLFeatureValueImageOption": NewType("MLFeatureValueImageOption", str),
|
|
54
|
+
"MLModelMetadataKey": NewType("MLModelMetadataKey", str),
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
misc.update({})
|
|
58
|
+
functions = {"MLAllComputeDevices": (b"@",)}
|
|
59
|
+
r = objc.registerMetaDataForSelector
|
|
60
|
+
objc._updatingMetadata(True)
|
|
61
|
+
try:
|
|
62
|
+
r(
|
|
63
|
+
b"MLArrayBatchProvider",
|
|
64
|
+
b"initWithDictionary:error:",
|
|
65
|
+
{"arguments": {3: {"type_modifier": b"o"}}},
|
|
66
|
+
)
|
|
67
|
+
r(
|
|
68
|
+
b"MLComputePlan",
|
|
69
|
+
b"loadContentsOfURL:configuration:completionHandler:",
|
|
70
|
+
{
|
|
71
|
+
"arguments": {
|
|
72
|
+
4: {
|
|
73
|
+
"callable": {
|
|
74
|
+
"retval": {"type": b"v"},
|
|
75
|
+
"arguments": {
|
|
76
|
+
0: {"type": b"^v"},
|
|
77
|
+
1: {"type": b"@"},
|
|
78
|
+
2: {"type": b"@"},
|
|
79
|
+
},
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
)
|
|
85
|
+
r(
|
|
86
|
+
b"MLComputePlan",
|
|
87
|
+
b"loadModelAsset:configuration:completionHandler:",
|
|
88
|
+
{
|
|
89
|
+
"arguments": {
|
|
90
|
+
4: {
|
|
91
|
+
"callable": {
|
|
92
|
+
"retval": {"type": b"v"},
|
|
93
|
+
"arguments": {
|
|
94
|
+
0: {"type": b"^v"},
|
|
95
|
+
1: {"type": b"@"},
|
|
96
|
+
2: {"type": b"@"},
|
|
97
|
+
},
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
)
|
|
103
|
+
r(
|
|
104
|
+
b"MLDictionaryFeatureProvider",
|
|
105
|
+
b"initWithDictionary:error:",
|
|
106
|
+
{"arguments": {3: {"type_modifier": b"o"}}},
|
|
107
|
+
)
|
|
108
|
+
r(b"MLFeatureDescription", b"isAllowedValue:", {"retval": {"type": "Z"}})
|
|
109
|
+
r(b"MLFeatureDescription", b"isOptional", {"retval": {"type": "Z"}})
|
|
110
|
+
r(b"MLFeatureDescription", b"setOptional:", {"arguments": {2: {"type": "Z"}}})
|
|
111
|
+
r(
|
|
112
|
+
b"MLFeatureValue",
|
|
113
|
+
b"featureValueWithCGImage:constraint:options:error:",
|
|
114
|
+
{"arguments": {5: {"type_modifier": b"o"}}},
|
|
115
|
+
)
|
|
116
|
+
r(
|
|
117
|
+
b"MLFeatureValue",
|
|
118
|
+
b"featureValueWithCGImage:orientation:constraint:options:error:",
|
|
119
|
+
{"arguments": {6: {"type_modifier": b"o"}}},
|
|
120
|
+
)
|
|
121
|
+
r(
|
|
122
|
+
b"MLFeatureValue",
|
|
123
|
+
b"featureValueWithCGImage:orientation:pixelsWide:pixelsHigh:pixelFormatType:options:error:",
|
|
124
|
+
{"arguments": {8: {"type_modifier": b"o"}}},
|
|
125
|
+
)
|
|
126
|
+
r(
|
|
127
|
+
b"MLFeatureValue",
|
|
128
|
+
b"featureValueWithCGImage:pixelsWide:pixelsHigh:pixelFormatType:options:error:",
|
|
129
|
+
{"arguments": {7: {"type_modifier": b"o"}}},
|
|
130
|
+
)
|
|
131
|
+
r(
|
|
132
|
+
b"MLFeatureValue",
|
|
133
|
+
b"featureValueWithDictionary:error:",
|
|
134
|
+
{"arguments": {3: {"type_modifier": b"o"}}},
|
|
135
|
+
)
|
|
136
|
+
r(
|
|
137
|
+
b"MLFeatureValue",
|
|
138
|
+
b"featureValueWithImageAtURL:constraint:options:error:",
|
|
139
|
+
{"arguments": {5: {"type_modifier": b"o"}}},
|
|
140
|
+
)
|
|
141
|
+
r(
|
|
142
|
+
b"MLFeatureValue",
|
|
143
|
+
b"featureValueWithImageAtURL:orientation:constraint:options:error:",
|
|
144
|
+
{"arguments": {6: {"type_modifier": b"o"}}},
|
|
145
|
+
)
|
|
146
|
+
r(
|
|
147
|
+
b"MLFeatureValue",
|
|
148
|
+
b"featureValueWithImageAtURL:orientation:pixelsWide:pixelsHigh:pixelFormatType:options:error:",
|
|
149
|
+
{"arguments": {8: {"type_modifier": b"o"}}},
|
|
150
|
+
)
|
|
151
|
+
r(
|
|
152
|
+
b"MLFeatureValue",
|
|
153
|
+
b"featureValueWithImageAtURL:pixelsWide:pixelsHigh:pixelFormatType:options:error:",
|
|
154
|
+
{"arguments": {7: {"type_modifier": b"o"}}},
|
|
155
|
+
)
|
|
156
|
+
r(b"MLFeatureValue", b"isEqualToFeatureValue:", {"retval": {"type": "Z"}})
|
|
157
|
+
r(b"MLFeatureValue", b"isUndefined", {"retval": {"type": "Z"}})
|
|
158
|
+
r(
|
|
159
|
+
b"MLModel",
|
|
160
|
+
b"compileModelAtURL:completionHandler:",
|
|
161
|
+
{
|
|
162
|
+
"arguments": {
|
|
163
|
+
3: {
|
|
164
|
+
"callable": {
|
|
165
|
+
"retval": {"type": b"v"},
|
|
166
|
+
"arguments": {
|
|
167
|
+
0: {"type": b"^v"},
|
|
168
|
+
1: {"type": b"@"},
|
|
169
|
+
2: {"type": b"@"},
|
|
170
|
+
},
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
)
|
|
176
|
+
r(
|
|
177
|
+
b"MLModel",
|
|
178
|
+
b"compileModelAtURL:error:",
|
|
179
|
+
{"arguments": {3: {"type_modifier": b"o"}}},
|
|
180
|
+
)
|
|
181
|
+
r(
|
|
182
|
+
b"MLModel",
|
|
183
|
+
b"loadContentsOfURL:configuration:completionHandler:",
|
|
184
|
+
{
|
|
185
|
+
"arguments": {
|
|
186
|
+
4: {
|
|
187
|
+
"callable": {
|
|
188
|
+
"retval": {"type": b"v"},
|
|
189
|
+
"arguments": {
|
|
190
|
+
0: {"type": b"^v"},
|
|
191
|
+
1: {"type": b"@"},
|
|
192
|
+
2: {"type": b"@"},
|
|
193
|
+
},
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
)
|
|
199
|
+
r(
|
|
200
|
+
b"MLModel",
|
|
201
|
+
b"loadModelAsset:configuration:completionHandler:",
|
|
202
|
+
{
|
|
203
|
+
"arguments": {
|
|
204
|
+
4: {
|
|
205
|
+
"callable": {
|
|
206
|
+
"retval": {"type": b"v"},
|
|
207
|
+
"arguments": {
|
|
208
|
+
0: {"type": b"^v"},
|
|
209
|
+
1: {"type": b"@"},
|
|
210
|
+
2: {"type": b"@"},
|
|
211
|
+
},
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
)
|
|
217
|
+
r(
|
|
218
|
+
b"MLModel",
|
|
219
|
+
b"modelWithContentsOfURL:configuration:error:",
|
|
220
|
+
{"arguments": {4: {"type_modifier": b"o"}}},
|
|
221
|
+
)
|
|
222
|
+
r(
|
|
223
|
+
b"MLModel",
|
|
224
|
+
b"modelWithContentsOfURL:error:",
|
|
225
|
+
{"arguments": {3: {"type_modifier": b"o"}}},
|
|
226
|
+
)
|
|
227
|
+
r(
|
|
228
|
+
b"MLModel",
|
|
229
|
+
b"parameterValueForKey:error:",
|
|
230
|
+
{"arguments": {3: {"type_modifier": b"o"}}},
|
|
231
|
+
)
|
|
232
|
+
r(
|
|
233
|
+
b"MLModel",
|
|
234
|
+
b"predictionFromFeatures:completionHandler:",
|
|
235
|
+
{
|
|
236
|
+
"arguments": {
|
|
237
|
+
3: {
|
|
238
|
+
"callable": {
|
|
239
|
+
"retval": {"type": b"v"},
|
|
240
|
+
"arguments": {
|
|
241
|
+
0: {"type": b"^v"},
|
|
242
|
+
1: {"type": b"@"},
|
|
243
|
+
2: {"type": b"@"},
|
|
244
|
+
},
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
)
|
|
250
|
+
r(
|
|
251
|
+
b"MLModel",
|
|
252
|
+
b"predictionFromFeatures:error:",
|
|
253
|
+
{"arguments": {3: {"type_modifier": b"o"}}},
|
|
254
|
+
)
|
|
255
|
+
r(
|
|
256
|
+
b"MLModel",
|
|
257
|
+
b"predictionFromFeatures:options:completionHandler:",
|
|
258
|
+
{
|
|
259
|
+
"arguments": {
|
|
260
|
+
4: {
|
|
261
|
+
"callable": {
|
|
262
|
+
"retval": {"type": b"v"},
|
|
263
|
+
"arguments": {
|
|
264
|
+
0: {"type": b"^v"},
|
|
265
|
+
1: {"type": b"@"},
|
|
266
|
+
2: {"type": b"@"},
|
|
267
|
+
},
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
)
|
|
273
|
+
r(
|
|
274
|
+
b"MLModel",
|
|
275
|
+
b"predictionFromFeatures:options:error:",
|
|
276
|
+
{"arguments": {4: {"type_modifier": b"o"}}},
|
|
277
|
+
)
|
|
278
|
+
r(
|
|
279
|
+
b"MLModel",
|
|
280
|
+
b"predictionFromFeatures:usingState:error:",
|
|
281
|
+
{"arguments": {4: {"type_modifier": b"o"}}},
|
|
282
|
+
)
|
|
283
|
+
r(
|
|
284
|
+
b"MLModel",
|
|
285
|
+
b"predictionFromFeatures:usingState:options:completionHandler:",
|
|
286
|
+
{
|
|
287
|
+
"arguments": {
|
|
288
|
+
5: {
|
|
289
|
+
"callable": {
|
|
290
|
+
"retval": {"type": b"v"},
|
|
291
|
+
"arguments": {
|
|
292
|
+
0: {"type": b"^v"},
|
|
293
|
+
1: {"type": b"@"},
|
|
294
|
+
2: {"type": b"@"},
|
|
295
|
+
},
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
)
|
|
301
|
+
r(
|
|
302
|
+
b"MLModel",
|
|
303
|
+
b"predictionFromFeatures:usingState:options:error:",
|
|
304
|
+
{"arguments": {5: {"type_modifier": b"o"}}},
|
|
305
|
+
)
|
|
306
|
+
r(
|
|
307
|
+
b"MLModel",
|
|
308
|
+
b"predictionsFromBatch:error:",
|
|
309
|
+
{"arguments": {3: {"type_modifier": b"o"}}},
|
|
310
|
+
)
|
|
311
|
+
r(
|
|
312
|
+
b"MLModel",
|
|
313
|
+
b"predictionsFromBatch:options:error:",
|
|
314
|
+
{"arguments": {4: {"type_modifier": b"o"}}},
|
|
315
|
+
)
|
|
316
|
+
r(
|
|
317
|
+
b"MLModelAsset",
|
|
318
|
+
b"functionNamesWithCompletionHandler:",
|
|
319
|
+
{
|
|
320
|
+
"arguments": {
|
|
321
|
+
2: {
|
|
322
|
+
"callable": {
|
|
323
|
+
"retval": {"type": b"v"},
|
|
324
|
+
"arguments": {
|
|
325
|
+
0: {"type": b"^v"},
|
|
326
|
+
1: {"type": b"@"},
|
|
327
|
+
2: {"type": b"@"},
|
|
328
|
+
},
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
)
|
|
334
|
+
r(
|
|
335
|
+
b"MLModelAsset",
|
|
336
|
+
b"modelAssetWithSpecificationData:blobMapping:error",
|
|
337
|
+
{"arguments": {4: {"type_modifier": b"o"}}},
|
|
338
|
+
)
|
|
339
|
+
r(
|
|
340
|
+
b"MLModelAsset",
|
|
341
|
+
b"modelAssetWithSpecificationData:blobMapping:error:",
|
|
342
|
+
{"arguments": {4: {"type_modifier": b"o"}}},
|
|
343
|
+
)
|
|
344
|
+
r(
|
|
345
|
+
b"MLModelAsset",
|
|
346
|
+
b"modelAssetWithSpecificationData:error:",
|
|
347
|
+
{"arguments": {3: {"type_modifier": b"o"}}},
|
|
348
|
+
)
|
|
349
|
+
r(
|
|
350
|
+
b"MLModelAsset",
|
|
351
|
+
b"modelAssetWithURL:error:",
|
|
352
|
+
{"arguments": {3: {"type_modifier": b"o"}}},
|
|
353
|
+
)
|
|
354
|
+
r(
|
|
355
|
+
b"MLModelAsset",
|
|
356
|
+
b"modelDescriptionOfFunctionNamed:completionHandler:",
|
|
357
|
+
{
|
|
358
|
+
"arguments": {
|
|
359
|
+
3: {
|
|
360
|
+
"callable": {
|
|
361
|
+
"retval": {"type": b"v"},
|
|
362
|
+
"arguments": {
|
|
363
|
+
0: {"type": b"^v"},
|
|
364
|
+
1: {"type": b"@"},
|
|
365
|
+
2: {"type": b"@"},
|
|
366
|
+
},
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
)
|
|
372
|
+
r(
|
|
373
|
+
b"MLModelAsset",
|
|
374
|
+
b"modelDescriptionWithCompletionHandler:",
|
|
375
|
+
{
|
|
376
|
+
"arguments": {
|
|
377
|
+
2: {
|
|
378
|
+
"callable": {
|
|
379
|
+
"retval": {"type": b"v"},
|
|
380
|
+
"arguments": {
|
|
381
|
+
0: {"type": b"^v"},
|
|
382
|
+
1: {"type": b"@"},
|
|
383
|
+
2: {"type": b"@"},
|
|
384
|
+
},
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
)
|
|
390
|
+
r(
|
|
391
|
+
b"MLModelCollection",
|
|
392
|
+
b"beginAccessingModelCollectionWithIdentifier:completionHandler:",
|
|
393
|
+
{
|
|
394
|
+
"arguments": {
|
|
395
|
+
3: {
|
|
396
|
+
"callable": {
|
|
397
|
+
"retval": {"type": b"v"},
|
|
398
|
+
"arguments": {
|
|
399
|
+
0: {"type": b"^v"},
|
|
400
|
+
1: {"type": b"@"},
|
|
401
|
+
2: {"type": b"@"},
|
|
402
|
+
},
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
)
|
|
408
|
+
r(
|
|
409
|
+
b"MLModelCollection",
|
|
410
|
+
b"endAccessingModelCollectionWithIdentifier:completionHandler:",
|
|
411
|
+
{
|
|
412
|
+
"arguments": {
|
|
413
|
+
3: {
|
|
414
|
+
"callable": {
|
|
415
|
+
"retval": {"type": b"v"},
|
|
416
|
+
"arguments": {
|
|
417
|
+
0: {"type": b"^v"},
|
|
418
|
+
1: {"type": b"Z"},
|
|
419
|
+
2: {"type": b"@"},
|
|
420
|
+
},
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
},
|
|
425
|
+
)
|
|
426
|
+
r(
|
|
427
|
+
b"MLModelCollectionEntry",
|
|
428
|
+
b"isEqualToModelCollectionEntry:",
|
|
429
|
+
{"retval": {"type": b"Z"}},
|
|
430
|
+
)
|
|
431
|
+
r(
|
|
432
|
+
b"MLModelConfiguration",
|
|
433
|
+
b"allowLowPrecisionAccumulationOnGPU",
|
|
434
|
+
{"retval": {"type": "Z"}},
|
|
435
|
+
)
|
|
436
|
+
r(
|
|
437
|
+
b"MLModelConfiguration",
|
|
438
|
+
b"setAllowLowPrecisionAccumulationOnGPU:",
|
|
439
|
+
{"arguments": {2: {"type": "Z"}}},
|
|
440
|
+
)
|
|
441
|
+
r(b"MLModelDescription", b"isUpdatable", {"retval": {"type": b"Z"}})
|
|
442
|
+
r(
|
|
443
|
+
b"MLModelStructure",
|
|
444
|
+
b"loadContentsOfURL:completionHandler:",
|
|
445
|
+
{
|
|
446
|
+
"arguments": {
|
|
447
|
+
3: {
|
|
448
|
+
"callable": {
|
|
449
|
+
"retval": {"type": b"v"},
|
|
450
|
+
"arguments": {
|
|
451
|
+
0: {"type": b"^v"},
|
|
452
|
+
1: {"type": b"@"},
|
|
453
|
+
2: {"type": b"@"},
|
|
454
|
+
},
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
},
|
|
459
|
+
)
|
|
460
|
+
r(
|
|
461
|
+
b"MLModelStructure",
|
|
462
|
+
b"loadModelAsset:completionHandler:",
|
|
463
|
+
{
|
|
464
|
+
"arguments": {
|
|
465
|
+
3: {
|
|
466
|
+
"callable": {
|
|
467
|
+
"retval": {"type": b"v"},
|
|
468
|
+
"arguments": {
|
|
469
|
+
0: {"type": b"^v"},
|
|
470
|
+
1: {"type": b"@"},
|
|
471
|
+
2: {"type": b"@"},
|
|
472
|
+
},
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
},
|
|
477
|
+
)
|
|
478
|
+
r(b"MLMultiArray", b"dataPointer", {"retval": {"c_array_of_variable_length": True}})
|
|
479
|
+
r(
|
|
480
|
+
b"MLMultiArray",
|
|
481
|
+
b"getBytesWithHandler:",
|
|
482
|
+
{
|
|
483
|
+
"arguments": {
|
|
484
|
+
2: {
|
|
485
|
+
"callable": {
|
|
486
|
+
"retval": {"type": b"v"},
|
|
487
|
+
"arguments": {
|
|
488
|
+
0: {"type": b"^v"},
|
|
489
|
+
1: {"type": b"n^v", "c_array_length_in_arg": 2},
|
|
490
|
+
2: {"type": b"q"},
|
|
491
|
+
},
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
7: {"type_modifier": b"o"},
|
|
495
|
+
}
|
|
496
|
+
},
|
|
497
|
+
)
|
|
498
|
+
r(
|
|
499
|
+
b"MLMultiArray",
|
|
500
|
+
b"getMutableBytesWithHandler:",
|
|
501
|
+
{
|
|
502
|
+
"arguments": {
|
|
503
|
+
2: {
|
|
504
|
+
"callable": {
|
|
505
|
+
"retval": {"type": b"v"},
|
|
506
|
+
"arguments": {
|
|
507
|
+
0: {"type": b"^v"},
|
|
508
|
+
1: {"type": b"N^v", "c_array_length_in_arg": 2},
|
|
509
|
+
2: {"type": b"q"},
|
|
510
|
+
3: {"type": b"@"},
|
|
511
|
+
},
|
|
512
|
+
}
|
|
513
|
+
},
|
|
514
|
+
7: {"type_modifier": b"o"},
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
)
|
|
518
|
+
r(
|
|
519
|
+
b"MLMultiArray",
|
|
520
|
+
b"initWithDataPointer:shape:dataType:strides:deallocator:error:",
|
|
521
|
+
{
|
|
522
|
+
"arguments": {
|
|
523
|
+
2: {"type_modifier": b"n", "c_array_of_variable_length": True},
|
|
524
|
+
6: {
|
|
525
|
+
"callable": {
|
|
526
|
+
"retval": {"type": b"v"},
|
|
527
|
+
"arguments": {0: {"type": b"^v"}, 1: {"type": b"^v"}},
|
|
528
|
+
}
|
|
529
|
+
},
|
|
530
|
+
7: {"type_modifier": b"o"},
|
|
531
|
+
}
|
|
532
|
+
},
|
|
533
|
+
)
|
|
534
|
+
r(
|
|
535
|
+
b"MLMultiArray",
|
|
536
|
+
b"initWithShape:dataType:error:",
|
|
537
|
+
{"arguments": {4: {"type_modifier": b"o"}}},
|
|
538
|
+
)
|
|
539
|
+
r(b"MLPredictionOptions", b"setUsesCPUOnly:", {"arguments": {2: {"type": "Z"}}})
|
|
540
|
+
r(b"MLPredictionOptions", b"usesCPUOnly", {"retval": {"type": "Z"}})
|
|
541
|
+
r(
|
|
542
|
+
b"MLState",
|
|
543
|
+
b"getMultiArrayForStateNamed:handler:",
|
|
544
|
+
{
|
|
545
|
+
"arguments": {
|
|
546
|
+
3: {
|
|
547
|
+
"callable": {
|
|
548
|
+
"retval": {"type": b"v"},
|
|
549
|
+
"arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
)
|
|
555
|
+
r(
|
|
556
|
+
b"MLUpdateProgressHandlers",
|
|
557
|
+
b"initForEvents:progressHandler:completionHandler:",
|
|
558
|
+
{
|
|
559
|
+
"arguments": {
|
|
560
|
+
3: {
|
|
561
|
+
"callable": {
|
|
562
|
+
"retval": {"type": b"v"},
|
|
563
|
+
"arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
|
|
564
|
+
}
|
|
565
|
+
},
|
|
566
|
+
4: {
|
|
567
|
+
"callable": {
|
|
568
|
+
"retval": {"type": b"v"},
|
|
569
|
+
"arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
|
|
570
|
+
}
|
|
571
|
+
},
|
|
572
|
+
}
|
|
573
|
+
},
|
|
574
|
+
)
|
|
575
|
+
r(
|
|
576
|
+
b"MLUpdateTask",
|
|
577
|
+
b"updateTaskForModelAtURL:trainingData:completionHandler:error:",
|
|
578
|
+
{
|
|
579
|
+
"arguments": {
|
|
580
|
+
4: {
|
|
581
|
+
"callable": {
|
|
582
|
+
"retval": {"type": b"v"},
|
|
583
|
+
"arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
|
|
584
|
+
}
|
|
585
|
+
},
|
|
586
|
+
5: {"type_modifier": b"o"},
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
)
|
|
590
|
+
r(
|
|
591
|
+
b"MLUpdateTask",
|
|
592
|
+
b"updateTaskForModelAtURL:trainingData:configuration:completionHandler:error:",
|
|
593
|
+
{
|
|
594
|
+
"arguments": {
|
|
595
|
+
5: {
|
|
596
|
+
"callable": {
|
|
597
|
+
"retval": {"type": b"v"},
|
|
598
|
+
"arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
|
|
599
|
+
}
|
|
600
|
+
},
|
|
601
|
+
6: {"type_modifier": b"o"},
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
)
|
|
605
|
+
r(
|
|
606
|
+
b"MLUpdateTask",
|
|
607
|
+
b"updateTaskForModelAtURL:trainingData:configuration:progressHandlers:error:",
|
|
608
|
+
{
|
|
609
|
+
"arguments": {
|
|
610
|
+
5: {
|
|
611
|
+
"callable": {
|
|
612
|
+
"retval": {"type": b"v"},
|
|
613
|
+
"arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
|
|
614
|
+
}
|
|
615
|
+
},
|
|
616
|
+
6: {"type_modifier": b"o"},
|
|
617
|
+
}
|
|
618
|
+
},
|
|
619
|
+
)
|
|
620
|
+
r(
|
|
621
|
+
b"MLUpdateTask",
|
|
622
|
+
b"updateTaskForModelAtURL:trainingData:progressHandlers:error:",
|
|
623
|
+
{"arguments": {5: {"type_modifier": b"o"}}},
|
|
624
|
+
)
|
|
625
|
+
r(b"NSObject", b"count", {"required": True, "retval": {"type": "q"}})
|
|
626
|
+
r(
|
|
627
|
+
b"NSObject",
|
|
628
|
+
b"encodeToCommandBuffer:inputs:outputs:error:",
|
|
629
|
+
{
|
|
630
|
+
"required": False,
|
|
631
|
+
"retval": {"type": "Z"},
|
|
632
|
+
"arguments": {
|
|
633
|
+
2: {"type": b"@"},
|
|
634
|
+
3: {"type": b"@"},
|
|
635
|
+
4: {"type": b"@"},
|
|
636
|
+
5: {"type": "^@", "type_modifier": b"o"},
|
|
637
|
+
},
|
|
638
|
+
},
|
|
639
|
+
)
|
|
640
|
+
r(
|
|
641
|
+
b"NSObject",
|
|
642
|
+
b"evaluateOnCPUWithInputs:outputs:error:",
|
|
643
|
+
{
|
|
644
|
+
"required": True,
|
|
645
|
+
"retval": {"type": "Z"},
|
|
646
|
+
"arguments": {
|
|
647
|
+
2: {"type": b"@"},
|
|
648
|
+
3: {"type": b"@"},
|
|
649
|
+
4: {"type": "^@", "type_modifier": b"o"},
|
|
650
|
+
},
|
|
651
|
+
},
|
|
652
|
+
)
|
|
653
|
+
r(b"NSObject", b"featureNames", {"required": True, "retval": {"type": b"@"}})
|
|
654
|
+
r(
|
|
655
|
+
b"NSObject",
|
|
656
|
+
b"featureValueForName:",
|
|
657
|
+
{"required": True, "retval": {"type": b"@"}, "arguments": {2: {"type": b"@"}}},
|
|
658
|
+
)
|
|
659
|
+
r(
|
|
660
|
+
b"NSObject",
|
|
661
|
+
b"featuresAtIndex:",
|
|
662
|
+
{"required": True, "retval": {"type": b"@"}, "arguments": {2: {"type": "q"}}},
|
|
663
|
+
)
|
|
664
|
+
r(
|
|
665
|
+
b"NSObject",
|
|
666
|
+
b"initWithModelDescription:parameterDictionary:error:",
|
|
667
|
+
{
|
|
668
|
+
"required": True,
|
|
669
|
+
"retval": {"type": b"@"},
|
|
670
|
+
"arguments": {
|
|
671
|
+
2: {"type": b"@"},
|
|
672
|
+
3: {"type": b"@"},
|
|
673
|
+
4: {"type": "^@", "type_modifier": b"o"},
|
|
674
|
+
},
|
|
675
|
+
},
|
|
676
|
+
)
|
|
677
|
+
r(
|
|
678
|
+
b"NSObject",
|
|
679
|
+
b"initWithParameterDictionary:error:",
|
|
680
|
+
{
|
|
681
|
+
"required": True,
|
|
682
|
+
"retval": {"type": b"@"},
|
|
683
|
+
"arguments": {2: {"type": b"@"}, 3: {"type": "^@", "type_modifier": b"o"}},
|
|
684
|
+
},
|
|
685
|
+
)
|
|
686
|
+
r(
|
|
687
|
+
b"NSObject",
|
|
688
|
+
b"outputShapesForInputShapes:error:",
|
|
689
|
+
{
|
|
690
|
+
"required": True,
|
|
691
|
+
"retval": {"type": b"@"},
|
|
692
|
+
"arguments": {2: {"type": b"@"}, 3: {"type": "^@", "type_modifier": b"o"}},
|
|
693
|
+
},
|
|
694
|
+
)
|
|
695
|
+
r(
|
|
696
|
+
b"NSObject",
|
|
697
|
+
b"predictionFromFeatures:options:error:",
|
|
698
|
+
{
|
|
699
|
+
"required": True,
|
|
700
|
+
"retval": {"type": b"@"},
|
|
701
|
+
"arguments": {
|
|
702
|
+
2: {"type": b"@"},
|
|
703
|
+
3: {"type": b"@"},
|
|
704
|
+
4: {"type": "^@", "type_modifier": b"o"},
|
|
705
|
+
},
|
|
706
|
+
},
|
|
707
|
+
)
|
|
708
|
+
r(
|
|
709
|
+
b"NSObject",
|
|
710
|
+
b"predictionsFromBatch:options:error:",
|
|
711
|
+
{
|
|
712
|
+
"required": False,
|
|
713
|
+
"retval": {"type": b"@"},
|
|
714
|
+
"arguments": {
|
|
715
|
+
2: {"type": b"@"},
|
|
716
|
+
3: {"type": b"@"},
|
|
717
|
+
4: {"type": "^@", "type_modifier": b"o"},
|
|
718
|
+
},
|
|
719
|
+
},
|
|
720
|
+
)
|
|
721
|
+
r(
|
|
722
|
+
b"NSObject",
|
|
723
|
+
b"setWeightData:error:",
|
|
724
|
+
{
|
|
725
|
+
"required": True,
|
|
726
|
+
"retval": {"type": "Z"},
|
|
727
|
+
"arguments": {2: {"type": b"@"}, 3: {"type": "^@", "type_modifier": b"o"}},
|
|
728
|
+
},
|
|
729
|
+
)
|
|
730
|
+
r(
|
|
731
|
+
b"NSObject",
|
|
732
|
+
b"writeToURL:error:",
|
|
733
|
+
{
|
|
734
|
+
"required": True,
|
|
735
|
+
"retval": {"type": b"Z"},
|
|
736
|
+
"arguments": {2: {"type": b"@"}, 3: {"type": "o^@", "type_modifier": b"o"}},
|
|
737
|
+
},
|
|
738
|
+
)
|
|
739
|
+
finally:
|
|
740
|
+
objc._updatingMetadata(False)
|
|
741
|
+
|
|
742
|
+
objc.registerNewKeywordsFromSelector(
|
|
743
|
+
"MLArrayBatchProvider", b"initWithDictionary:error:"
|
|
744
|
+
)
|
|
745
|
+
objc.registerNewKeywordsFromSelector(
|
|
746
|
+
"MLArrayBatchProvider", b"initWithFeatureProviderArray:"
|
|
747
|
+
)
|
|
748
|
+
objc.registerNewKeywordsFromSelector("MLCPUComputeDevice", b"init")
|
|
749
|
+
objc.registerNewKeywordsFromSelector("MLComputePlan", b"init")
|
|
750
|
+
objc.registerNewKeywordsFromSelector("MLComputePlanCost", b"init")
|
|
751
|
+
objc.registerNewKeywordsFromSelector("MLComputePlanDeviceUsage", b"init")
|
|
752
|
+
objc.registerNewKeywordsFromSelector(
|
|
753
|
+
"MLDictionaryFeatureProvider", b"initWithDictionary:error:"
|
|
754
|
+
)
|
|
755
|
+
objc.registerNewKeywordsFromSelector("MLGPUComputeDevice", b"init")
|
|
756
|
+
objc.registerNewKeywordsFromSelector("MLImageConstraint", b"init")
|
|
757
|
+
objc.registerNewKeywordsFromSelector("MLKey", b"init")
|
|
758
|
+
objc.registerNewKeywordsFromSelector("MLMetricKey", b"init")
|
|
759
|
+
objc.registerNewKeywordsFromSelector("MLModelAsset", b"init")
|
|
760
|
+
objc.registerNewKeywordsFromSelector("MLModelCollection", b"init")
|
|
761
|
+
objc.registerNewKeywordsFromSelector("MLModelCollectionEntry", b"init")
|
|
762
|
+
objc.registerNewKeywordsFromSelector("MLModelStructure", b"init")
|
|
763
|
+
objc.registerNewKeywordsFromSelector("MLModelStructureNeuralNetwork", b"init")
|
|
764
|
+
objc.registerNewKeywordsFromSelector("MLModelStructureNeuralNetworkLayer", b"init")
|
|
765
|
+
objc.registerNewKeywordsFromSelector("MLModelStructurePipeline", b"init")
|
|
766
|
+
objc.registerNewKeywordsFromSelector("MLModelStructureProgram", b"init")
|
|
767
|
+
objc.registerNewKeywordsFromSelector("MLModelStructureProgramArgument", b"init")
|
|
768
|
+
objc.registerNewKeywordsFromSelector("MLModelStructureProgramBinding", b"init")
|
|
769
|
+
objc.registerNewKeywordsFromSelector("MLModelStructureProgramBlock", b"init")
|
|
770
|
+
objc.registerNewKeywordsFromSelector("MLModelStructureProgramFunction", b"init")
|
|
771
|
+
objc.registerNewKeywordsFromSelector("MLModelStructureProgramNamedValueType", b"init")
|
|
772
|
+
objc.registerNewKeywordsFromSelector("MLModelStructureProgramOperation", b"init")
|
|
773
|
+
objc.registerNewKeywordsFromSelector("MLModelStructureProgramValue", b"init")
|
|
774
|
+
objc.registerNewKeywordsFromSelector("MLModelStructureProgramValueType", b"init")
|
|
775
|
+
objc.registerNewKeywordsFromSelector(
|
|
776
|
+
"MLMultiArray", b"initWithDataPointer:shape:dataType:strides:deallocator:error:"
|
|
777
|
+
)
|
|
778
|
+
objc.registerNewKeywordsFromSelector("MLMultiArray", b"initWithPixelBuffer:shape:")
|
|
779
|
+
objc.registerNewKeywordsFromSelector("MLMultiArray", b"initWithShape:dataType:error:")
|
|
780
|
+
objc.registerNewKeywordsFromSelector("MLMultiArray", b"initWithShape:dataType:strides:")
|
|
781
|
+
objc.registerNewKeywordsFromSelector("MLNeuralEngineComputeDevice", b"init")
|
|
782
|
+
objc.registerNewKeywordsFromSelector("MLParameterKey", b"init")
|
|
783
|
+
objc.registerNewKeywordsFromSelector("MLState", b"init")
|
|
784
|
+
objc.registerNewKeywordsFromSelector("MLTask", b"init")
|
|
785
|
+
objc.registerNewKeywordsFromSelector("MLUpdateProgressHandlers", b"init")
|
|
786
|
+
objc.registerNewKeywordsFromSelector(
|
|
787
|
+
"MLUpdateProgressHandlers", b"initForEvents:progressHandler:completionHandler:"
|
|
788
|
+
)
|
|
789
|
+
objc.registerNewKeywordsFromSelector("MLUpdateTask", b"init")
|
|
790
|
+
|
|
791
|
+
objc.registerNewKeywords(
|
|
792
|
+
"MLFeatureValue",
|
|
793
|
+
("CGImage", "constraint", "options", "error"),
|
|
794
|
+
"featureValueWithCGImage_constraint_options_error_",
|
|
795
|
+
)
|
|
796
|
+
objc.registerNewKeywords(
|
|
797
|
+
"MLFeatureValue",
|
|
798
|
+
("CGImage", "orientation", "constraint", "options", "error"),
|
|
799
|
+
"featureValueWithCGImage_orientation_constraint_options_error_",
|
|
800
|
+
)
|
|
801
|
+
objc.registerNewKeywords(
|
|
802
|
+
"MLFeatureValue",
|
|
803
|
+
(
|
|
804
|
+
"CGImage",
|
|
805
|
+
"orientation",
|
|
806
|
+
"pixelsWide",
|
|
807
|
+
"pixelsHigh",
|
|
808
|
+
"pixelFormatType",
|
|
809
|
+
"options",
|
|
810
|
+
"error",
|
|
811
|
+
),
|
|
812
|
+
"featureValueWithCGImage_orientation_pixelsWide_pixelsHigh_pixelFormatType_options_error_",
|
|
813
|
+
)
|
|
814
|
+
objc.registerNewKeywords(
|
|
815
|
+
"MLFeatureValue",
|
|
816
|
+
("CGImage", "pixelsWide", "pixelsHigh", "pixelFormatType", "options", "error"),
|
|
817
|
+
"featureValueWithCGImage_pixelsWide_pixelsHigh_pixelFormatType_options_error_",
|
|
818
|
+
)
|
|
819
|
+
objc.registerNewKeywords(
|
|
820
|
+
"MLFeatureValue", ("dictionary", "error"), "featureValueWithDictionary_error_"
|
|
821
|
+
)
|
|
822
|
+
objc.registerNewKeywords("MLFeatureValue", ("double",), "featureValueWithDouble_")
|
|
823
|
+
objc.registerNewKeywords(
|
|
824
|
+
"MLFeatureValue",
|
|
825
|
+
("imageAtURL", "constraint", "options", "error"),
|
|
826
|
+
"featureValueWithImageAtURL_constraint_options_error_",
|
|
827
|
+
)
|
|
828
|
+
objc.registerNewKeywords(
|
|
829
|
+
"MLFeatureValue",
|
|
830
|
+
("imageAtURL", "orientation", "constraint", "options", "error"),
|
|
831
|
+
"featureValueWithImageAtURL_orientation_constraint_options_error_",
|
|
832
|
+
)
|
|
833
|
+
objc.registerNewKeywords(
|
|
834
|
+
"MLFeatureValue",
|
|
835
|
+
(
|
|
836
|
+
"imageAtURL",
|
|
837
|
+
"orientation",
|
|
838
|
+
"pixelsWide",
|
|
839
|
+
"pixelsHigh",
|
|
840
|
+
"pixelFormatType",
|
|
841
|
+
"options",
|
|
842
|
+
"error",
|
|
843
|
+
),
|
|
844
|
+
"featureValueWithImageAtURL_orientation_pixelsWide_pixelsHigh_pixelFormatType_options_error_",
|
|
845
|
+
)
|
|
846
|
+
objc.registerNewKeywords(
|
|
847
|
+
"MLFeatureValue",
|
|
848
|
+
("imageAtURL", "pixelsWide", "pixelsHigh", "pixelFormatType", "options", "error"),
|
|
849
|
+
"featureValueWithImageAtURL_pixelsWide_pixelsHigh_pixelFormatType_options_error_",
|
|
850
|
+
)
|
|
851
|
+
objc.registerNewKeywords("MLFeatureValue", ("int64",), "featureValueWithInt64_")
|
|
852
|
+
objc.registerNewKeywords(
|
|
853
|
+
"MLFeatureValue", ("multiArray",), "featureValueWithMultiArray_"
|
|
854
|
+
)
|
|
855
|
+
objc.registerNewKeywords(
|
|
856
|
+
"MLFeatureValue", ("pixelBuffer",), "featureValueWithPixelBuffer_"
|
|
857
|
+
)
|
|
858
|
+
objc.registerNewKeywords("MLFeatureValue", ("sequence",), "featureValueWithSequence_")
|
|
859
|
+
objc.registerNewKeywords("MLFeatureValue", ("string",), "featureValueWithString_")
|
|
860
|
+
objc.registerNewKeywords("MLFeatureValue", ("type",), "undefinedFeatureValueWithType_")
|
|
861
|
+
objc.registerNewKeywords(
|
|
862
|
+
"MLModel",
|
|
863
|
+
("contentsOfURL", "configuration", "error"),
|
|
864
|
+
"modelWithContentsOfURL_configuration_error_",
|
|
865
|
+
)
|
|
866
|
+
objc.registerNewKeywords(
|
|
867
|
+
"MLModel", ("contentsOfURL", "error"), "modelWithContentsOfURL_error_"
|
|
868
|
+
)
|
|
869
|
+
objc.registerNewKeywords(
|
|
870
|
+
"MLModelAsset",
|
|
871
|
+
("specificationData", "blobMapping", "error"),
|
|
872
|
+
"modelAssetWithSpecificationData_blobMapping_error_",
|
|
873
|
+
)
|
|
874
|
+
objc.registerNewKeywords(
|
|
875
|
+
"MLModelAsset",
|
|
876
|
+
("specificationData", "error"),
|
|
877
|
+
"modelAssetWithSpecificationData_error_",
|
|
878
|
+
)
|
|
879
|
+
objc.registerNewKeywords("MLModelAsset", ("URL", "error"), "modelAssetWithURL_error_")
|
|
880
|
+
objc.registerNewKeywords("MLSequence", ("type",), "emptySequenceWithType_")
|
|
881
|
+
objc.registerNewKeywords("MLSequence", ("int64Array",), "sequenceWithInt64Array_")
|
|
882
|
+
objc.registerNewKeywords("MLSequence", ("stringArray",), "sequenceWithStringArray_")
|
|
883
|
+
expressions = {}
|
|
884
|
+
|
|
885
|
+
# END OF FILE
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pyobjc-framework-CoreML
|
|
3
|
+
Version: 12.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
|
|
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: Natural Language :: English
|
|
16
|
+
Classifier: Operating System :: MacOS :: MacOS X
|
|
17
|
+
Classifier: Programming Language :: Python
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
26
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
27
|
+
Classifier: Programming Language :: Python :: Free Threading :: 3 - Stable
|
|
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.10
|
|
32
|
+
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
33
|
+
Requires-Dist: pyobjc-core>=12.2
|
|
34
|
+
Requires-Dist: pyobjc-framework-Cocoa>=12.2
|
|
35
|
+
Dynamic: author
|
|
36
|
+
Dynamic: author-email
|
|
37
|
+
Dynamic: classifier
|
|
38
|
+
Dynamic: description
|
|
39
|
+
Dynamic: description-content-type
|
|
40
|
+
Dynamic: home-page
|
|
41
|
+
Dynamic: keywords
|
|
42
|
+
Dynamic: license
|
|
43
|
+
Dynamic: platform
|
|
44
|
+
Dynamic: requires-dist
|
|
45
|
+
Dynamic: requires-python
|
|
46
|
+
Dynamic: summary
|
|
47
|
+
Project-URL: Documentation, https://pyobjc.readthedocs.io/en/latest/
|
|
48
|
+
Project-URL: Issue tracker, https://github.com/ronaldoussoren/pyobjc/issues
|
|
49
|
+
Project-URL: Repository, https://github.com/ronaldoussoren/pyobjc
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
Wrappers for the "CoreML" framework on macOS.
|
|
53
|
+
|
|
54
|
+
These wrappers don't include documentation, please check Apple's documentation
|
|
55
|
+
for information on how to use this framework and PyObjC's documentation
|
|
56
|
+
for general tips and tricks regarding the translation between Python
|
|
57
|
+
and (Objective-)C frameworks
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
Project links
|
|
61
|
+
-------------
|
|
62
|
+
|
|
63
|
+
* `Documentation <https://pyobjc.readthedocs.io/en/latest/>`_
|
|
64
|
+
|
|
65
|
+
* `Issue Tracker <https://github.com/ronaldoussoren/pyobjc/issues>`_
|
|
66
|
+
|
|
67
|
+
* `Repository <https://github.com/ronaldoussoren/pyobjc/>`_
|
|
68
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
CoreML/_CoreML.cpython-315t-darwin.so,sha256=86xjDPAtQAjwYK0Dl-9B2z3_En1GbLQ7_RdYYX4juKI,84240
|
|
2
|
+
CoreML/__init__.py,sha256=Zz2U8Tj1_FOAZ5kTGX4i3igRuaascg6twgakE2WSF4o,4198
|
|
3
|
+
CoreML/_metadata.py,sha256=lqhT5W_cZzSNKvKwqB7KMmmtMMJpL6oyBilv17KOgyM,29598
|
|
4
|
+
pyobjc_framework_coreml-12.2.dist-info/METADATA,sha256=i8s39_HG_jHh3dYrfpmrPzRcuVFsJy0j3JLLvVD8vBk,2493
|
|
5
|
+
pyobjc_framework_coreml-12.2.dist-info/WHEEL,sha256=_nP7yfUfwxmGX9RTJbiMJrobK8htS_8OhvZ4aYaIBs4,116
|
|
6
|
+
pyobjc_framework_coreml-12.2.dist-info/pyobjc-build-info.txt,sha256=Ri0Wl_rPog8K797Y9SwUgX2P5KgewvMu0uQOBhtk0lo,83
|
|
7
|
+
pyobjc_framework_coreml-12.2.dist-info/top_level.txt,sha256=Uu3gkPlQDO5j-W2w8qzMWN9i2fGd__ZWct1flwsvhIc,7
|
|
8
|
+
pyobjc_framework_coreml-12.2.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
CoreML
|