pyobjc-framework-MLCompute 12.0__tar.gz → 12.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. pyobjc_framework_mlcompute-12.2/Lib/MLCompute/_metadata.py +1375 -0
  2. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/Lib/pyobjc_framework_MLCompute.egg-info/PKG-INFO +5 -6
  3. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/Lib/pyobjc_framework_MLCompute.egg-info/SOURCES.txt +2 -2
  4. pyobjc_framework_mlcompute-12.2/Lib/pyobjc_framework_MLCompute.egg-info/pyobjc-build-info.txt +3 -0
  5. pyobjc_framework_mlcompute-12.2/Lib/pyobjc_framework_MLCompute.egg-info/requires.txt +2 -0
  6. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/PKG-INFO +5 -6
  7. pyobjc_framework_mlcompute-12.0/metadata/raw/arm64-26.0.fwinfo → pyobjc_framework_mlcompute-12.2/metadata/raw/arm64-26.5.fwinfo +4326 -181
  8. pyobjc_framework_mlcompute-12.0/metadata/raw/x86_64-26.0.fwinfo → pyobjc_framework_mlcompute-12.2/metadata/raw/x86_64-26.5.fwinfo +4326 -181
  9. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/pyobjc_setup.py +4 -5
  10. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/setup.py +1 -1
  11. pyobjc_framework_mlcompute-12.0/Lib/MLCompute/_metadata.py +0 -564
  12. pyobjc_framework_mlcompute-12.0/Lib/pyobjc_framework_MLCompute.egg-info/pyobjc-build-info.txt +0 -3
  13. pyobjc_framework_mlcompute-12.0/Lib/pyobjc_framework_MLCompute.egg-info/requires.txt +0 -2
  14. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/Lib/MLCompute/__init__.py +0 -0
  15. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/Lib/pyobjc_framework_MLCompute.egg-info/dependency_links.txt +0 -0
  16. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/Lib/pyobjc_framework_MLCompute.egg-info/not-zip-safe +0 -0
  17. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/Lib/pyobjc_framework_MLCompute.egg-info/top_level.txt +0 -0
  18. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/License.txt +0 -0
  19. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/MANIFEST.in +0 -0
  20. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/PyObjCTest/__init__.py +0 -0
  21. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/PyObjCTest/test_mlcadamoptimzer.py +0 -0
  22. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/PyObjCTest/test_mlcadmwoptimzer.py +0 -0
  23. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/PyObjCTest/test_mlcconvolutiondescriptor.py +0 -0
  24. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/PyObjCTest/test_mlcdevice.py +0 -0
  25. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/PyObjCTest/test_mlcembeddingdescriptor.py +0 -0
  26. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/PyObjCTest/test_mlcgraph.py +0 -0
  27. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/PyObjCTest/test_mlcinferencegraph.py +0 -0
  28. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/PyObjCTest/test_mlclayer.py +0 -0
  29. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/PyObjCTest/test_mlclstmdescriptor.py +0 -0
  30. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/PyObjCTest/test_mlcmatmuldescriptor.py +0 -0
  31. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/PyObjCTest/test_mlcmultiheadattentiondescriptor.py +0 -0
  32. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/PyObjCTest/test_mlcompute.py +0 -0
  33. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/PyObjCTest/test_mlcoptimizer.py +0 -0
  34. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/PyObjCTest/test_mlcoptimizerdescriptor.py +0 -0
  35. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/PyObjCTest/test_mlcpoolingdescriptor.py +0 -0
  36. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/PyObjCTest/test_mlcrmspropoptimizer.py +0 -0
  37. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/PyObjCTest/test_mlcsgdoptimizer.py +0 -0
  38. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/PyObjCTest/test_mlctensor.py +0 -0
  39. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/PyObjCTest/test_mlctensordata.py +0 -0
  40. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/PyObjCTest/test_mlctensordescriptor.py +0 -0
  41. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/PyObjCTest/test_mlctensorparameter.py +0 -0
  42. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/PyObjCTest/test_mlctraininggraph.py +0 -0
  43. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/PyObjCTest/test_mlctypes.py +0 -0
  44. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/PyObjCTest/test_mlcupsamplelayer.py +0 -0
  45. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/PyObjCTest/test_mlcyololossdescriptor.py +0 -0
  46. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/metadata/MLCompute.fwinfo +0 -0
  47. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/metadata/metadata.ini +0 -0
  48. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/pyproject.toml +0 -0
  49. {pyobjc_framework_mlcompute-12.0 → pyobjc_framework_mlcompute-12.2}/setup.cfg +0 -0
@@ -0,0 +1,1375 @@
1
+ # This file is generated by objective.metadata
2
+ #
3
+ # Last update: Sun May 24 11:51:45 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 = """$$"""
34
+ enums = """$MLCActivationTypeAbsolute@6$MLCActivationTypeCELU@13$MLCActivationTypeClamp@20$MLCActivationTypeELU@9$MLCActivationTypeGELU@18$MLCActivationTypeHardShrink@14$MLCActivationTypeHardSigmoid@4$MLCActivationTypeHardSwish@19$MLCActivationTypeLinear@2$MLCActivationTypeLogSigmoid@11$MLCActivationTypeNone@0$MLCActivationTypeReLU@1$MLCActivationTypeReLUN@10$MLCActivationTypeSELU@12$MLCActivationTypeSigmoid@3$MLCActivationTypeSoftPlus@7$MLCActivationTypeSoftShrink@15$MLCActivationTypeSoftSign@8$MLCActivationTypeTanh@5$MLCActivationTypeTanhShrink@16$MLCActivationTypeThreshold@17$MLCArithmeticOperationAcos@13$MLCArithmeticOperationAcosh@19$MLCArithmeticOperationAdd@0$MLCArithmeticOperationAsin@12$MLCArithmeticOperationAsinh@18$MLCArithmeticOperationAtan@14$MLCArithmeticOperationAtanh@20$MLCArithmeticOperationCeil@6$MLCArithmeticOperationCos@10$MLCArithmeticOperationCosh@16$MLCArithmeticOperationDivide@3$MLCArithmeticOperationDivideNoNaN@27$MLCArithmeticOperationExp@22$MLCArithmeticOperationExp2@23$MLCArithmeticOperationFloor@4$MLCArithmeticOperationLog@24$MLCArithmeticOperationLog2@25$MLCArithmeticOperationMax@29$MLCArithmeticOperationMin@28$MLCArithmeticOperationMultiply@2$MLCArithmeticOperationMultiplyNoNaN@26$MLCArithmeticOperationPow@21$MLCArithmeticOperationRound@5$MLCArithmeticOperationRsqrt@8$MLCArithmeticOperationSin@9$MLCArithmeticOperationSinh@15$MLCArithmeticOperationSqrt@7$MLCArithmeticOperationSubtract@1$MLCArithmeticOperationTan@11$MLCArithmeticOperationTanh@17$MLCComparisonOperationEqual@0$MLCComparisonOperationGreater@3$MLCComparisonOperationGreaterOrEqual@5$MLCComparisonOperationLess@2$MLCComparisonOperationLessOrEqual@4$MLCComparisonOperationLogicalAND@6$MLCComparisonOperationLogicalNAND@9$MLCComparisonOperationLogicalNOR@10$MLCComparisonOperationLogicalNOT@8$MLCComparisonOperationLogicalOR@7$MLCComparisonOperationLogicalXOR@11$MLCComparisonOperationNotEqual@1$MLCConvolutionTypeDepthwise@2$MLCConvolutionTypeStandard@0$MLCConvolutionTypeTransposed@1$MLCDataTypeBoolean@4$MLCDataTypeFloat16@3$MLCDataTypeFloat32@1$MLCDataTypeInt32@7$MLCDataTypeInt64@5$MLCDataTypeInt8@8$MLCDataTypeInvalid@0$MLCDataTypeUInt8@9$MLCDeviceTypeANE@3$MLCDeviceTypeAny@2$MLCDeviceTypeCPU@0$MLCDeviceTypeGPU@1$MLCExecutionOptionsForwardForInference@8$MLCExecutionOptionsNone@0$MLCExecutionOptionsPerLayerProfiling@16$MLCExecutionOptionsProfiling@4$MLCExecutionOptionsSkipWritingInputDataToDevice@1$MLCExecutionOptionsSynchronous@2$MLCGradientClippingTypeByGlobalNorm@2$MLCGradientClippingTypeByNorm@1$MLCGradientClippingTypeByValue@0$MLCGraphCompilationOptionsComputeAllGradients@8$MLCGraphCompilationOptionsDebugLayers@1$MLCGraphCompilationOptionsDisableLayerFusion@2$MLCGraphCompilationOptionsLinkGraphs@4$MLCGraphCompilationOptionsNone@0$MLCLSTMResultModeOutput@0$MLCLSTMResultModeOutputAndStates@1$MLCLossTypeCategoricalCrossEntropy@4$MLCLossTypeCosineDistance@7$MLCLossTypeHinge@5$MLCLossTypeHuber@6$MLCLossTypeLog@8$MLCLossTypeMeanAbsoluteError@0$MLCLossTypeMeanSquaredError@1$MLCLossTypeSigmoidCrossEntropy@3$MLCLossTypeSoftmaxCrossEntropy@2$MLCPaddingPolicySame@0$MLCPaddingPolicyUsePaddingSize@2$MLCPaddingPolicyValid@1$MLCPaddingTypeConstant@3$MLCPaddingTypeReflect@1$MLCPaddingTypeSymmetric@2$MLCPaddingTypeZero@0$MLCPoolingTypeAverage@2$MLCPoolingTypeL2Norm@3$MLCPoolingTypeMax@1$MLCRandomInitializerTypeGlorotUniform@2$MLCRandomInitializerTypeInvalid@0$MLCRandomInitializerTypeUniform@1$MLCRandomInitializerTypeXavier@3$MLCReductionTypeAll@9$MLCReductionTypeAny@8$MLCReductionTypeArgMax@5$MLCReductionTypeArgMin@6$MLCReductionTypeL1Norm@7$MLCReductionTypeMax@3$MLCReductionTypeMean@2$MLCReductionTypeMin@4$MLCReductionTypeNone@0$MLCReductionTypeSum@1$MLCRegularizationTypeL1@1$MLCRegularizationTypeL2@2$MLCRegularizationTypeNone@0$MLCSampleModeLinear@1$MLCSampleModeNearest@0$MLCSoftmaxOperationLogSoftmax@1$MLCSoftmaxOperationSoftmax@0$"""
35
+ misc.update(
36
+ {
37
+ "MLCSampleMode": NewType("MLCSampleMode", int),
38
+ "MLCArithmeticOperation": NewType("MLCArithmeticOperation", int),
39
+ "MLCExecutionOptions": NewType("MLCExecutionOptions", int),
40
+ "MLCReductionType": NewType("MLCReductionType", int),
41
+ "MLCComparisonOperation": NewType("MLCComparisonOperation", int),
42
+ "MLCGradientClippingType": NewType("MLCGradientClippingType", int),
43
+ "MLCRegularizationType": NewType("MLCRegularizationType", int),
44
+ "MLCDeviceType": NewType("MLCDeviceType", int),
45
+ "MLCLossType": NewType("MLCLossType", int),
46
+ "MLCPoolingType": NewType("MLCPoolingType", int),
47
+ "MLCConvolutionType": NewType("MLCConvolutionType", int),
48
+ "MLCPaddingPolicy": NewType("MLCPaddingPolicy", int),
49
+ "MLCRandomInitializerType": NewType("MLCRandomInitializerType", int),
50
+ "MLCLSTMResultMode": NewType("MLCLSTMResultMode", int),
51
+ "MLCDataType": NewType("MLCDataType", int),
52
+ "MLCActivationType": NewType("MLCActivationType", int),
53
+ "MLCSoftmaxOperation": NewType("MLCSoftmaxOperation", int),
54
+ "MLCPaddingType": NewType("MLCPaddingType", int),
55
+ "MLCGraphCompilationOptions": NewType("MLCGraphCompilationOptions", int),
56
+ }
57
+ )
58
+ misc.update({})
59
+ misc.update({})
60
+ functions = {
61
+ "MLCPaddingTypeDebugDescription": (b"@i",),
62
+ "MLCReductionTypeDebugDescription": (b"@i",),
63
+ "MLCLossTypeDebugDescription": (b"@i",),
64
+ "MLCGradientClippingTypeDebugDescription": (b"@i",),
65
+ "MLCComparisonOperationDebugDescription": (b"@i",),
66
+ "MLCLSTMResultModeDebugDescription": (b"@Q",),
67
+ "MLCPoolingTypeDebugDescription": (b"@i",),
68
+ "MLCActivationTypeDebugDescription": (b"@i",),
69
+ "MLCPaddingPolicyDebugDescription": (b"@i",),
70
+ "MLCConvolutionTypeDebugDescription": (b"@i",),
71
+ "MLCSoftmaxOperationDebugDescription": (b"@i",),
72
+ "MLCArithmeticOperationDebugDescription": (b"@i",),
73
+ "MLCSampleModeDebugDescription": (b"@i",),
74
+ }
75
+ r = objc.registerMetaDataForSelector
76
+ objc._updatingMetadata(True)
77
+ try:
78
+ r(
79
+ b"MLCAdamOptimizer",
80
+ b"optimizerWithDescriptor:beta1:beta2:epsilon:usesAMSGrad:timeStep:",
81
+ {"arguments": {6: {"type": b"Z"}}},
82
+ )
83
+ r(b"MLCAdamOptimizer", b"usesAMSGrad", {"retval": {"type": b"Z"}})
84
+ r(
85
+ b"MLCAdamWOptimizer",
86
+ b"optimizerWithDescriptor:beta1:beta2:epsilon:usesAMSGrad:timeStep:",
87
+ {"arguments": {6: {"type": b"Z"}}},
88
+ )
89
+ r(b"MLCAdamWOptimizer", b"usesAMSGrad", {"retval": {"type": b"Z"}})
90
+ r(
91
+ b"MLCConvolutionDescriptor",
92
+ b"isConvolutionTranspose",
93
+ {"retval": {"type": b"Z"}},
94
+ )
95
+ r(
96
+ b"MLCConvolutionDescriptor",
97
+ b"usesDepthwiseConvolution",
98
+ {"retval": {"type": b"Z"}},
99
+ )
100
+ r(
101
+ b"MLCDevice",
102
+ b"deviceWithType:selectsMultipleComputeDevices:",
103
+ {"arguments": {3: {"type": b"Z"}}},
104
+ )
105
+ r(
106
+ b"MLCEmbeddingDescriptor",
107
+ b"descriptorWithEmbeddingCount:embeddingDimension:paddingIndex:maximumNorm:pNorm:scalesGradientByFrequency:",
108
+ {"arguments": {7: {"type": b"Z"}}},
109
+ )
110
+ r(
111
+ b"MLCEmbeddingDescriptor",
112
+ b"scalesGradientByFrequency",
113
+ {"retval": {"type": b"Z"}},
114
+ )
115
+ r(
116
+ b"MLCGraph",
117
+ b"bindAndWriteData:forInputs:toDevice:batchSize:synchronous:",
118
+ {"retval": {"type": b"Z"}, "arguments": {6: {"type": b"Z"}}},
119
+ )
120
+ r(
121
+ b"MLCGraph",
122
+ b"bindAndWriteData:forInputs:toDevice:synchronous:",
123
+ {"retval": {"type": "Z"}, "arguments": {5: {"type": "Z"}}},
124
+ )
125
+ r(
126
+ b"MLCGraph",
127
+ b"nodeWithLayer:sources:disableUpdate:",
128
+ {"arguments": {4: {"type": b"Z"}}},
129
+ )
130
+ r(b"MLCInferenceGraph", b"addInputs:", {"retval": {"type": b"Z"}})
131
+ r(
132
+ b"MLCInferenceGraph",
133
+ b"addInputs:lossLabels:lossLabelWeights:",
134
+ {"retval": {"type": b"Z"}},
135
+ )
136
+ r(b"MLCInferenceGraph", b"addOutputs:", {"retval": {"type": b"Z"}})
137
+ r(b"MLCInferenceGraph", b"compileWithOptions:device:", {"retval": {"type": b"Z"}})
138
+ r(
139
+ b"MLCInferenceGraph",
140
+ b"compileWithOptions:device:inputTensors:inputTensorsData:",
141
+ {"retval": {"type": "Z"}},
142
+ )
143
+ r(
144
+ b"MLCInferenceGraph",
145
+ b"executeWithInputsData:batchSize:options:completionHandler:",
146
+ {
147
+ "retval": {"type": b"Z"},
148
+ "arguments": {
149
+ 5: {
150
+ "callable": {
151
+ "retval": {"type": b"v"},
152
+ "arguments": {
153
+ 0: {"type": b"^v"},
154
+ 1: {"type": b"@"},
155
+ 2: {"type": b"@"},
156
+ 3: {"type": b"d"},
157
+ },
158
+ }
159
+ }
160
+ },
161
+ },
162
+ )
163
+ r(
164
+ b"MLCInferenceGraph",
165
+ b"executeWithInputsData:lossLabelsData:lossLabelWeightsData:batchSize:options:completionHandler:",
166
+ {
167
+ "retval": {"type": b"Z"},
168
+ "arguments": {
169
+ 7: {
170
+ "callable": {
171
+ "retval": {"type": b"v"},
172
+ "arguments": {
173
+ 0: {"type": b"^v"},
174
+ 1: {"type": b"@"},
175
+ 2: {"type": b"@"},
176
+ 3: {"type": b"d"},
177
+ },
178
+ }
179
+ }
180
+ },
181
+ },
182
+ )
183
+ r(
184
+ b"MLCInferenceGraph",
185
+ b"executeWithInputsData:lossLabelsData:lossLabelWeightsData:outputsData:batchSize:options:completionHandler:",
186
+ {
187
+ "retval": {"type": b"Z"},
188
+ "arguments": {
189
+ 8: {
190
+ "callable": {
191
+ "retval": {"type": b"v"},
192
+ "arguments": {
193
+ 0: {"type": b"^v"},
194
+ 1: {"type": b"@"},
195
+ 2: {"type": b"@"},
196
+ 3: {"type": b"d"},
197
+ },
198
+ }
199
+ }
200
+ },
201
+ },
202
+ )
203
+ r(
204
+ b"MLCInferenceGraph",
205
+ b"executeWithInputsData:outputsData:batchSize:options:completionHandler:",
206
+ {
207
+ "retval": {"type": b"Z"},
208
+ "arguments": {
209
+ 6: {
210
+ "callable": {
211
+ "retval": {"type": b"v"},
212
+ "arguments": {
213
+ 0: {"type": b"^v"},
214
+ 1: {"type": b"@"},
215
+ 2: {"type": b"@"},
216
+ 3: {"type": b"d"},
217
+ },
218
+ }
219
+ }
220
+ },
221
+ },
222
+ )
223
+ r(b"MLCInferenceGraph", b"linkWithGraphs:", {"retval": {"type": b"Z"}})
224
+ r(b"MLCLSTMDescriptor", b"batchFirst", {"retval": {"type": b"Z"}})
225
+ r(
226
+ b"MLCLSTMDescriptor",
227
+ b"descriptorWithInputSize:hiddenSize:layerCount:usesBiases:batchFirst:isBidirectional:dropout:",
228
+ {"arguments": {5: {"type": b"Z"}, 6: {"type": b"Z"}, 7: {"type": b"Z"}}},
229
+ )
230
+ r(
231
+ b"MLCLSTMDescriptor",
232
+ b"descriptorWithInputSize:hiddenSize:layerCount:usesBiases:batchFirst:isBidirectional:returnsSequences:dropout:",
233
+ {
234
+ "arguments": {
235
+ 5: {"type": b"Z"},
236
+ 6: {"type": b"Z"},
237
+ 7: {"type": b"Z"},
238
+ 8: {"type": b"Z"},
239
+ }
240
+ },
241
+ )
242
+ r(
243
+ b"MLCLSTMDescriptor",
244
+ b"descriptorWithInputSize:hiddenSize:layerCount:usesBiases:batchFirst:isBidirectional:returnsSequences:dropout:resultMode:",
245
+ {
246
+ "arguments": {
247
+ 5: {"type": "Z"},
248
+ 6: {"type": "Z"},
249
+ 7: {"type": "Z"},
250
+ 8: {"type": "Z"},
251
+ }
252
+ },
253
+ )
254
+ r(
255
+ b"MLCLSTMDescriptor",
256
+ b"descriptorWithInputSize:hiddenSize:layerCount:usesBiases:isBidirectional:dropout:",
257
+ {"arguments": {5: {"type": b"Z"}, 6: {"type": b"Z"}}},
258
+ )
259
+ r(b"MLCLSTMDescriptor", b"isBidirectional", {"retval": {"type": b"Z"}})
260
+ r(b"MLCLSTMDescriptor", b"returnsSequences", {"retval": {"type": b"Z"}})
261
+ r(b"MLCLSTMDescriptor", b"usesBiases", {"retval": {"type": b"Z"}})
262
+ r(b"MLCLayer", b"isDebuggingEnabled", {"retval": {"type": b"Z"}})
263
+ r(b"MLCLayer", b"setIsDebuggingEnabled:", {"arguments": {2: {"type": b"Z"}}})
264
+ r(b"MLCLayer", b"supportsDataType:onDevice:", {"retval": {"type": "Z"}})
265
+ r(
266
+ b"MLCMatMulDescriptor",
267
+ b"descriptorWithAlpha:transposesX:transposesY:",
268
+ {"arguments": {3: {"type": b"Z"}, 4: {"type": b"Z"}}},
269
+ )
270
+ r(b"MLCMatMulDescriptor", b"transposesX", {"retval": {"type": b"Z"}})
271
+ r(b"MLCMatMulDescriptor", b"transposesY", {"retval": {"type": b"Z"}})
272
+ r(
273
+ b"MLCMultiheadAttentionDescriptor",
274
+ b"addsZeroAttention",
275
+ {"retval": {"type": b"Z"}},
276
+ )
277
+ r(
278
+ b"MLCMultiheadAttentionDescriptor",
279
+ b"descriptorWithModelDimension:keyDimension:valueDimension:headCount:dropout:hasBiases:hasAttentionBiases:addsZeroAttention:",
280
+ {"arguments": {7: {"type": b"Z"}, 8: {"type": b"Z"}, 9: {"type": b"Z"}}},
281
+ )
282
+ r(
283
+ b"MLCMultiheadAttentionDescriptor",
284
+ b"hasAttentionBiases",
285
+ {"retval": {"type": b"Z"}},
286
+ )
287
+ r(b"MLCMultiheadAttentionDescriptor", b"hasBiases", {"retval": {"type": b"Z"}})
288
+ r(b"MLCOptimizer", b"appliesGradientClipping", {"retval": {"type": b"Z"}})
289
+ r(
290
+ b"MLCOptimizer",
291
+ b"setAppliesGradientClipping:",
292
+ {"arguments": {2: {"type": b"Z"}}},
293
+ )
294
+ r(b"MLCOptimizerDescriptor", b"appliesGradientClipping", {"retval": {"type": b"Z"}})
295
+ r(
296
+ b"MLCOptimizerDescriptor",
297
+ b"descriptorWithLearningRate:gradientRescale:appliesGradientClipping:gradientClipMax:gradientClipMin:regularizationType:regularizationScale:",
298
+ {"arguments": {4: {"type": b"Z"}}},
299
+ )
300
+ r(
301
+ b"MLCOptimizerDescriptor",
302
+ b"descriptorWithLearningRate:gradientRescale:appliesGradientClipping:gradientClippingType:gradientClipMax:gradientClipMin:maximumClippingNorm:customGlobalNorm:regularizationType:regularizationScale:",
303
+ {"arguments": {4: {"type": b"Z"}}},
304
+ )
305
+ r(
306
+ b"MLCPoolingDescriptor",
307
+ b"averagePoolingDescriptorWithKernelSizes:strides:dilationRates:paddingPolicy:paddingSizes:countIncludesPadding:",
308
+ {"arguments": {7: {"type": b"Z"}}},
309
+ )
310
+ r(
311
+ b"MLCPoolingDescriptor",
312
+ b"averagePoolingDescriptorWithKernelSizes:strides:paddingPolicy:paddingSizes:countIncludesPadding:",
313
+ {"arguments": {6: {"type": b"Z"}}},
314
+ )
315
+ r(b"MLCPoolingDescriptor", b"countIncludesPadding", {"retval": {"type": b"Z"}})
316
+ r(b"MLCRMSPropOptimizer", b"isCentered", {"retval": {"type": b"Z"}})
317
+ r(
318
+ b"MLCRMSPropOptimizer",
319
+ b"optimizerWithDescriptor:momentumScale:alpha:epsilon:isCentered:",
320
+ {"arguments": {6: {"type": b"Z"}}},
321
+ )
322
+ r(
323
+ b"MLCSGDOptimizer",
324
+ b"optimizerWithDescriptor:momentumScale:usesNesterovMomentum:",
325
+ {"arguments": {4: {"type": "Z"}}},
326
+ )
327
+ r(b"MLCSGDOptimizer", b"usesNesterovMomentum", {"retval": {"type": "Z"}})
328
+ r(b"MLCTensor", b"bindAndWriteData:toDevice:", {"retval": {"type": b"Z"}})
329
+ r(b"MLCTensor", b"bindOptimizerData:deviceData:", {"retval": {"type": "Z"}})
330
+ r(
331
+ b"MLCTensor",
332
+ b"copyDataFromDeviceMemoryToBytes:length:synchronizeWithDevice:",
333
+ {"retval": {"type": b"Z"}, "arguments": {4: {"type": b"Z"}}},
334
+ )
335
+ r(b"MLCTensor", b"hasValidNumerics", {"retval": {"type": b"Z"}})
336
+ r(b"MLCTensor", b"synchronizeData", {"retval": {"type": b"Z"}})
337
+ r(b"MLCTensor", b"synchronizeOptimizerData", {"retval": {"type": "Z"}})
338
+ r(
339
+ b"MLCTensor",
340
+ b"tensorWithSequenceLengths:sortedSequences:featureChannelCount:batchSize:data:",
341
+ {"arguments": {3: {"type": b"Z"}}},
342
+ )
343
+ r(
344
+ b"MLCTensor",
345
+ b"tensorWithSequenceLengths:sortedSequences:featureChannelCount:batchSize:randomInitializerType:",
346
+ {"arguments": {3: {"type": b"Z"}}},
347
+ )
348
+ r(b"MLCTensorData", b"bytes", {"retval": {"c_array_of_variable_size": True}})
349
+ r(
350
+ b"MLCTensorData",
351
+ b"dataWithBytesNoCopy:length:",
352
+ {"arguments": {2: {"type_modifier": b"n", "c_array_length_in_arg": 3}}},
353
+ )
354
+ r(
355
+ b"MLCTensorData",
356
+ b"dataWithBytesNoCopy:length:deallocator:",
357
+ {
358
+ "arguments": {
359
+ 2: {"type_modifier": b"n", "c_array_length_in_arg": 3},
360
+ 4: {
361
+ "callable": {
362
+ "retval": {"type": b"v"},
363
+ "arguments": {
364
+ 0: {"type": b"^v"},
365
+ 1: {"type": b"n^v", "c_array_length_in_arg": 2},
366
+ 2: {"type": b"Q"},
367
+ },
368
+ }
369
+ },
370
+ }
371
+ },
372
+ )
373
+ r(
374
+ b"MLCTensorData",
375
+ b"dataWithImmutableBytesNoCopy:length:",
376
+ {"arguments": {2: {"type_modifier": b"n", "c_array_length_in_arg": 3}}},
377
+ )
378
+ r(
379
+ b"MLCTensorDescriptor",
380
+ b"descriptorWithShape:sequenceLengths:sortedSequences:dataType:",
381
+ {"arguments": {4: {"type": b"Z"}}},
382
+ )
383
+ r(b"MLCTensorDescriptor", b"sortedSequences", {"retval": {"type": b"Z"}})
384
+ r(b"MLCTensorParameter", b"isUpdatable", {"retval": {"type": b"Z"}})
385
+ r(b"MLCTensorParameter", b"setIsUpdatable:", {"arguments": {2: {"type": b"Z"}}})
386
+ r(b"MLCTrainingGraph", b"addInputs:lossLabels:", {"retval": {"type": b"Z"}})
387
+ r(
388
+ b"MLCTrainingGraph",
389
+ b"addInputs:lossLabels:lossLabelWeights:",
390
+ {"retval": {"type": b"Z"}},
391
+ )
392
+ r(b"MLCTrainingGraph", b"addOutputs:", {"retval": {"type": b"Z"}})
393
+ r(
394
+ b"MLCTrainingGraph",
395
+ b"bindOptimizerData:deviceData:withTensor:",
396
+ {"retval": {"type": "Z"}},
397
+ )
398
+ r(b"MLCTrainingGraph", b"compileOptimizer:", {"retval": {"type": b"Z"}})
399
+ r(b"MLCTrainingGraph", b"compileWithOptions:device:", {"retval": {"type": b"Z"}})
400
+ r(
401
+ b"MLCTrainingGraph",
402
+ b"compileWithOptions:device:inputTensors:inputTensorsData:",
403
+ {"retval": {"type": "Z"}},
404
+ )
405
+ r(
406
+ b"MLCTrainingGraph",
407
+ b"executeForwardWithBatchSize:options:completionHandler:",
408
+ {
409
+ "retval": {"type": b"Z"},
410
+ "arguments": {
411
+ 4: {
412
+ "callable": {
413
+ "retval": {"type": b"v"},
414
+ "arguments": {
415
+ 0: {"type": b"^v"},
416
+ 1: {"type": b"@"},
417
+ 2: {"type": b"@"},
418
+ 3: {"type": b"d"},
419
+ },
420
+ }
421
+ }
422
+ },
423
+ },
424
+ )
425
+ r(
426
+ b"MLCTrainingGraph",
427
+ b"executeForwardWithBatchSize:options:outputsData:completionHandler:",
428
+ {
429
+ "retval": {"type": b"Z"},
430
+ "arguments": {
431
+ 5: {
432
+ "callable": {
433
+ "retval": {"type": b"v"},
434
+ "arguments": {
435
+ 0: {"type": b"^v"},
436
+ 1: {"type": b"@"},
437
+ 2: {"type": b"@"},
438
+ 3: {"type": b"d"},
439
+ },
440
+ }
441
+ }
442
+ },
443
+ },
444
+ )
445
+ r(
446
+ b"MLCTrainingGraph",
447
+ b"executeGradientWithBatchSize:options:completionHandler:",
448
+ {
449
+ "retval": {"type": b"Z"},
450
+ "arguments": {
451
+ 4: {
452
+ "callable": {
453
+ "retval": {"type": b"v"},
454
+ "arguments": {
455
+ 0: {"type": b"^v"},
456
+ 1: {"type": b"@"},
457
+ 2: {"type": b"@"},
458
+ 3: {"type": b"d"},
459
+ },
460
+ }
461
+ }
462
+ },
463
+ },
464
+ )
465
+ r(
466
+ b"MLCTrainingGraph",
467
+ b"executeGradientWithBatchSize:options:outputsData:completionHandler:",
468
+ {
469
+ "retval": {"type": b"Z"},
470
+ "arguments": {
471
+ 5: {
472
+ "callable": {
473
+ "retval": {"type": b"v"},
474
+ "arguments": {
475
+ 0: {"type": b"^v"},
476
+ 1: {"type": b"@"},
477
+ 2: {"type": b"@"},
478
+ 3: {"type": b"d"},
479
+ },
480
+ }
481
+ }
482
+ },
483
+ },
484
+ )
485
+ r(
486
+ b"MLCTrainingGraph",
487
+ b"executeOptimizerUpdateWithOptions:completionHandler:",
488
+ {
489
+ "retval": {"type": b"Z"},
490
+ "arguments": {
491
+ 3: {
492
+ "callable": {
493
+ "retval": {"type": b"v"},
494
+ "arguments": {
495
+ 0: {"type": b"^v"},
496
+ 1: {"type": b"@"},
497
+ 2: {"type": b"@"},
498
+ 3: {"type": b"d"},
499
+ },
500
+ }
501
+ }
502
+ },
503
+ },
504
+ )
505
+ r(
506
+ b"MLCTrainingGraph",
507
+ b"executeWithInputsData:lossLabelsData:lossLabelWeightsData:batchSize:options:completionHandler:",
508
+ {
509
+ "retval": {"type": b"Z"},
510
+ "arguments": {
511
+ 7: {
512
+ "callable": {
513
+ "retval": {"type": b"v"},
514
+ "arguments": {
515
+ 0: {"type": b"^v"},
516
+ 1: {"type": b"@"},
517
+ 2: {"type": b"@"},
518
+ 3: {"type": b"d"},
519
+ },
520
+ }
521
+ }
522
+ },
523
+ },
524
+ )
525
+ r(
526
+ b"MLCTrainingGraph",
527
+ b"executeWithInputsData:lossLabelsData:lossLabelWeightsData:outputsData:batchSize:options:completionHandler:",
528
+ {
529
+ "retval": {"type": b"Z"},
530
+ "arguments": {
531
+ 8: {
532
+ "callable": {
533
+ "retval": {"type": b"v"},
534
+ "arguments": {
535
+ 0: {"type": b"^v"},
536
+ 1: {"type": b"@"},
537
+ 2: {"type": b"@"},
538
+ 3: {"type": b"d"},
539
+ },
540
+ }
541
+ }
542
+ },
543
+ },
544
+ )
545
+ r(b"MLCTrainingGraph", b"linkWithGraphs:", {"retval": {"type": b"Z"}})
546
+ r(b"MLCTrainingGraph", b"setTrainingTensorParameters:", {"retval": {"type": b"Z"}})
547
+ r(b"MLCTrainingGraph", b"stopGradientForTensors:", {"retval": {"type": b"Z"}})
548
+ r(b"MLCUpsampleLayer", b"alignsCorners", {"retval": {"type": b"Z"}})
549
+ r(
550
+ b"MLCUpsampleLayer",
551
+ b"layerWithShape:sampleMode:alignsCorners:",
552
+ {"arguments": {4: {"type": b"Z"}}},
553
+ )
554
+ r(
555
+ b"MLCYOLOLossDescriptor",
556
+ b"setShouldRescore:",
557
+ {"arguments": {2: {"type": b"Z"}}},
558
+ )
559
+ r(b"MLCYOLOLossDescriptor", b"shouldRescore", {"retval": {"type": b"Z"}})
560
+ finally:
561
+ objc._updatingMetadata(False)
562
+
563
+ objc.registerNewKeywordsFromSelector("MLCActivationDescriptor", b"init")
564
+ objc.registerNewKeywordsFromSelector("MLCEmbeddingDescriptor", b"init")
565
+ objc.registerNewKeywordsFromSelector("MLCInferenceGraph", b"init")
566
+ objc.registerNewKeywordsFromSelector("MLCLSTMDescriptor", b"init")
567
+ objc.registerNewKeywordsFromSelector("MLCLayer", b"init")
568
+ objc.registerNewKeywordsFromSelector("MLCLossDescriptor", b"init")
569
+ objc.registerNewKeywordsFromSelector("MLCMatMulDescriptor", b"init")
570
+ objc.registerNewKeywordsFromSelector("MLCMultiheadAttentionDescriptor", b"init")
571
+ objc.registerNewKeywordsFromSelector("MLCOptimizer", b"init")
572
+ objc.registerNewKeywordsFromSelector("MLCPoolingDescriptor", b"init")
573
+ objc.registerNewKeywordsFromSelector("MLCTensor", b"init")
574
+ objc.registerNewKeywordsFromSelector("MLCTensorData", b"init")
575
+ objc.registerNewKeywordsFromSelector("MLCTensorDescriptor", b"init")
576
+ objc.registerNewKeywordsFromSelector("MLCTensorParameter", b"init")
577
+ objc.registerNewKeywordsFromSelector("MLCYOLOLossDescriptor", b"init")
578
+
579
+ objc.registerNewKeywords("MLCActivationDescriptor", ("type",), "descriptorWithType_")
580
+ objc.registerNewKeywords(
581
+ "MLCActivationDescriptor", ("type", "a"), "descriptorWithType_a_"
582
+ )
583
+ objc.registerNewKeywords(
584
+ "MLCActivationDescriptor", ("type", "a", "b"), "descriptorWithType_a_b_"
585
+ )
586
+ objc.registerNewKeywords(
587
+ "MLCActivationDescriptor", ("type", "a", "b", "c"), "descriptorWithType_a_b_c_"
588
+ )
589
+ objc.registerNewKeywords("MLCActivationLayer", ("a",), "celuLayerWithA_")
590
+ objc.registerNewKeywords(
591
+ "MLCActivationLayer", ("minValue", "maxValue"), "clampLayerWithMinValue_maxValue_"
592
+ )
593
+ objc.registerNewKeywords("MLCActivationLayer", ("a",), "eluLayerWithA_")
594
+ objc.registerNewKeywords("MLCActivationLayer", ("a",), "hardShrinkLayerWithA_")
595
+ objc.registerNewKeywords("MLCActivationLayer", ("descriptor",), "layerWithDescriptor_")
596
+ objc.registerNewKeywords(
597
+ "MLCActivationLayer", ("negativeSlope",), "leakyReLULayerWithNegativeSlope_"
598
+ )
599
+ objc.registerNewKeywords(
600
+ "MLCActivationLayer", ("scale", "bias"), "linearLayerWithScale_bias_"
601
+ )
602
+ objc.registerNewKeywords("MLCActivationLayer", ("a", "b"), "relunLayerWithA_b_")
603
+ objc.registerNewKeywords("MLCActivationLayer", ("beta",), "softPlusLayerWithBeta_")
604
+ objc.registerNewKeywords("MLCActivationLayer", ("a",), "softShrinkLayerWithA_")
605
+ objc.registerNewKeywords(
606
+ "MLCActivationLayer",
607
+ ("threshold", "replacement"),
608
+ "thresholdLayerWithThreshold_replacement_",
609
+ )
610
+ objc.registerNewKeywords(
611
+ "MLCAdamOptimizer", ("descriptor",), "optimizerWithDescriptor_"
612
+ )
613
+ objc.registerNewKeywords(
614
+ "MLCAdamOptimizer",
615
+ ("descriptor", "beta1", "beta2", "epsilon", "timeStep"),
616
+ "optimizerWithDescriptor_beta1_beta2_epsilon_timeStep_",
617
+ )
618
+ objc.registerNewKeywords(
619
+ "MLCAdamOptimizer",
620
+ ("descriptor", "beta1", "beta2", "epsilon", "usesAMSGrad", "timeStep"),
621
+ "optimizerWithDescriptor_beta1_beta2_epsilon_usesAMSGrad_timeStep_",
622
+ )
623
+ objc.registerNewKeywords(
624
+ "MLCAdamWOptimizer", ("descriptor",), "optimizerWithDescriptor_"
625
+ )
626
+ objc.registerNewKeywords(
627
+ "MLCAdamWOptimizer",
628
+ ("descriptor", "beta1", "beta2", "epsilon", "usesAMSGrad", "timeStep"),
629
+ "optimizerWithDescriptor_beta1_beta2_epsilon_usesAMSGrad_timeStep_",
630
+ )
631
+ objc.registerNewKeywords("MLCArithmeticLayer", ("operation",), "layerWithOperation_")
632
+ objc.registerNewKeywords(
633
+ "MLCBatchNormalizationLayer",
634
+ ("featureChannelCount", "mean", "variance", "beta", "gamma", "varianceEpsilon"),
635
+ "layerWithFeatureChannelCount_mean_variance_beta_gamma_varianceEpsilon_",
636
+ )
637
+ objc.registerNewKeywords(
638
+ "MLCBatchNormalizationLayer",
639
+ (
640
+ "featureChannelCount",
641
+ "mean",
642
+ "variance",
643
+ "beta",
644
+ "gamma",
645
+ "varianceEpsilon",
646
+ "momentum",
647
+ ),
648
+ "layerWithFeatureChannelCount_mean_variance_beta_gamma_varianceEpsilon_momentum_",
649
+ )
650
+ objc.registerNewKeywords("MLCComparisonLayer", ("operation",), "layerWithOperation_")
651
+ objc.registerNewKeywords("MLCConcatenationLayer", ("dimension",), "layerWithDimension_")
652
+ objc.registerNewKeywords(
653
+ "MLCConvolutionDescriptor",
654
+ (
655
+ "kernelSizes",
656
+ "inputFeatureChannelCount",
657
+ "outputFeatureChannelCount",
658
+ "groupCount",
659
+ "strides",
660
+ "dilationRates",
661
+ "paddingPolicy",
662
+ "paddingSizes",
663
+ ),
664
+ "convolutionTransposeDescriptorWithKernelSizes_inputFeatureChannelCount_outputFeatureChannelCount_groupCount_strides_dilationRates_paddingPolicy_paddingSizes_",
665
+ )
666
+ objc.registerNewKeywords(
667
+ "MLCConvolutionDescriptor",
668
+ (
669
+ "kernelSizes",
670
+ "inputFeatureChannelCount",
671
+ "outputFeatureChannelCount",
672
+ "strides",
673
+ "paddingPolicy",
674
+ "paddingSizes",
675
+ ),
676
+ "convolutionTransposeDescriptorWithKernelSizes_inputFeatureChannelCount_outputFeatureChannelCount_strides_paddingPolicy_paddingSizes_",
677
+ )
678
+ objc.registerNewKeywords(
679
+ "MLCConvolutionDescriptor",
680
+ (
681
+ "kernelWidth",
682
+ "kernelHeight",
683
+ "inputFeatureChannelCount",
684
+ "outputFeatureChannelCount",
685
+ ),
686
+ "convolutionTransposeDescriptorWithKernelWidth_kernelHeight_inputFeatureChannelCount_outputFeatureChannelCount_",
687
+ )
688
+ objc.registerNewKeywords(
689
+ "MLCConvolutionDescriptor",
690
+ (
691
+ "kernelSizes",
692
+ "inputFeatureChannelCount",
693
+ "channelMultiplier",
694
+ "strides",
695
+ "dilationRates",
696
+ "paddingPolicy",
697
+ "paddingSizes",
698
+ ),
699
+ "depthwiseConvolutionDescriptorWithKernelSizes_inputFeatureChannelCount_channelMultiplier_strides_dilationRates_paddingPolicy_paddingSizes_",
700
+ )
701
+ objc.registerNewKeywords(
702
+ "MLCConvolutionDescriptor",
703
+ (
704
+ "kernelSizes",
705
+ "inputFeatureChannelCount",
706
+ "channelMultiplier",
707
+ "strides",
708
+ "paddingPolicy",
709
+ "paddingSizes",
710
+ ),
711
+ "depthwiseConvolutionDescriptorWithKernelSizes_inputFeatureChannelCount_channelMultiplier_strides_paddingPolicy_paddingSizes_",
712
+ )
713
+ objc.registerNewKeywords(
714
+ "MLCConvolutionDescriptor",
715
+ ("kernelWidth", "kernelHeight", "inputFeatureChannelCount", "channelMultiplier"),
716
+ "depthwiseConvolutionDescriptorWithKernelWidth_kernelHeight_inputFeatureChannelCount_channelMultiplier_",
717
+ )
718
+ objc.registerNewKeywords(
719
+ "MLCConvolutionDescriptor",
720
+ (
721
+ "kernelSizes",
722
+ "inputFeatureChannelCount",
723
+ "outputFeatureChannelCount",
724
+ "groupCount",
725
+ "strides",
726
+ "dilationRates",
727
+ "paddingPolicy",
728
+ "paddingSizes",
729
+ ),
730
+ "descriptorWithKernelSizes_inputFeatureChannelCount_outputFeatureChannelCount_groupCount_strides_dilationRates_paddingPolicy_paddingSizes_",
731
+ )
732
+ objc.registerNewKeywords(
733
+ "MLCConvolutionDescriptor",
734
+ (
735
+ "kernelSizes",
736
+ "inputFeatureChannelCount",
737
+ "outputFeatureChannelCount",
738
+ "strides",
739
+ "paddingPolicy",
740
+ "paddingSizes",
741
+ ),
742
+ "descriptorWithKernelSizes_inputFeatureChannelCount_outputFeatureChannelCount_strides_paddingPolicy_paddingSizes_",
743
+ )
744
+ objc.registerNewKeywords(
745
+ "MLCConvolutionDescriptor",
746
+ (
747
+ "kernelWidth",
748
+ "kernelHeight",
749
+ "inputFeatureChannelCount",
750
+ "outputFeatureChannelCount",
751
+ ),
752
+ "descriptorWithKernelWidth_kernelHeight_inputFeatureChannelCount_outputFeatureChannelCount_",
753
+ )
754
+ objc.registerNewKeywords(
755
+ "MLCConvolutionDescriptor",
756
+ (
757
+ "type",
758
+ "kernelSizes",
759
+ "inputFeatureChannelCount",
760
+ "outputFeatureChannelCount",
761
+ "groupCount",
762
+ "strides",
763
+ "dilationRates",
764
+ "paddingPolicy",
765
+ "paddingSizes",
766
+ ),
767
+ "descriptorWithType_kernelSizes_inputFeatureChannelCount_outputFeatureChannelCount_groupCount_strides_dilationRates_paddingPolicy_paddingSizes_",
768
+ )
769
+ objc.registerNewKeywords(
770
+ "MLCConvolutionLayer",
771
+ ("weights", "biases", "descriptor"),
772
+ "layerWithWeights_biases_descriptor_",
773
+ )
774
+ objc.registerNewKeywords("MLCDevice", ("GPUDevices",), "deviceWithGPUDevices_")
775
+ objc.registerNewKeywords("MLCDevice", ("type",), "deviceWithType_")
776
+ objc.registerNewKeywords(
777
+ "MLCDevice",
778
+ ("type", "selectsMultipleComputeDevices"),
779
+ "deviceWithType_selectsMultipleComputeDevices_",
780
+ )
781
+ objc.registerNewKeywords("MLCDropoutLayer", ("rate", "seed"), "layerWithRate_seed_")
782
+ objc.registerNewKeywords(
783
+ "MLCEmbeddingDescriptor",
784
+ ("embeddingCount", "embeddingDimension"),
785
+ "descriptorWithEmbeddingCount_embeddingDimension_",
786
+ )
787
+ objc.registerNewKeywords(
788
+ "MLCEmbeddingDescriptor",
789
+ (
790
+ "embeddingCount",
791
+ "embeddingDimension",
792
+ "paddingIndex",
793
+ "maximumNorm",
794
+ "pNorm",
795
+ "scalesGradientByFrequency",
796
+ ),
797
+ "descriptorWithEmbeddingCount_embeddingDimension_paddingIndex_maximumNorm_pNorm_scalesGradientByFrequency_",
798
+ )
799
+ objc.registerNewKeywords(
800
+ "MLCEmbeddingLayer", ("descriptor", "weights"), "layerWithDescriptor_weights_"
801
+ )
802
+ objc.registerNewKeywords(
803
+ "MLCFullyConnectedLayer",
804
+ ("weights", "biases", "descriptor"),
805
+ "layerWithWeights_biases_descriptor_",
806
+ )
807
+ objc.registerNewKeywords("MLCGatherLayer", ("dimension",), "layerWithDimension_")
808
+ objc.registerNewKeywords("MLCGramMatrixLayer", ("scale",), "layerWithScale_")
809
+ objc.registerNewKeywords(
810
+ "MLCGroupNormalizationLayer",
811
+ ("featureChannelCount", "groupCount", "beta", "gamma", "varianceEpsilon"),
812
+ "layerWithFeatureChannelCount_groupCount_beta_gamma_varianceEpsilon_",
813
+ )
814
+ objc.registerNewKeywords(
815
+ "MLCInferenceGraph", ("graphObjects",), "graphWithGraphObjects_"
816
+ )
817
+ objc.registerNewKeywords(
818
+ "MLCInstanceNormalizationLayer",
819
+ ("featureChannelCount", "beta", "gamma", "varianceEpsilon"),
820
+ "layerWithFeatureChannelCount_beta_gamma_varianceEpsilon_",
821
+ )
822
+ objc.registerNewKeywords(
823
+ "MLCInstanceNormalizationLayer",
824
+ ("featureChannelCount", "beta", "gamma", "varianceEpsilon", "momentum"),
825
+ "layerWithFeatureChannelCount_beta_gamma_varianceEpsilon_momentum_",
826
+ )
827
+ objc.registerNewKeywords(
828
+ "MLCInstanceNormalizationLayer",
829
+ (
830
+ "featureChannelCount",
831
+ "mean",
832
+ "variance",
833
+ "beta",
834
+ "gamma",
835
+ "varianceEpsilon",
836
+ "momentum",
837
+ ),
838
+ "layerWithFeatureChannelCount_mean_variance_beta_gamma_varianceEpsilon_momentum_",
839
+ )
840
+ objc.registerNewKeywords(
841
+ "MLCLSTMDescriptor",
842
+ ("inputSize", "hiddenSize", "layerCount"),
843
+ "descriptorWithInputSize_hiddenSize_layerCount_",
844
+ )
845
+ objc.registerNewKeywords(
846
+ "MLCLSTMDescriptor",
847
+ (
848
+ "inputSize",
849
+ "hiddenSize",
850
+ "layerCount",
851
+ "usesBiases",
852
+ "batchFirst",
853
+ "isBidirectional",
854
+ "dropout",
855
+ ),
856
+ "descriptorWithInputSize_hiddenSize_layerCount_usesBiases_batchFirst_isBidirectional_dropout_",
857
+ )
858
+ objc.registerNewKeywords(
859
+ "MLCLSTMDescriptor",
860
+ (
861
+ "inputSize",
862
+ "hiddenSize",
863
+ "layerCount",
864
+ "usesBiases",
865
+ "batchFirst",
866
+ "isBidirectional",
867
+ "returnsSequences",
868
+ "dropout",
869
+ ),
870
+ "descriptorWithInputSize_hiddenSize_layerCount_usesBiases_batchFirst_isBidirectional_returnsSequences_dropout_",
871
+ )
872
+ objc.registerNewKeywords(
873
+ "MLCLSTMDescriptor",
874
+ (
875
+ "inputSize",
876
+ "hiddenSize",
877
+ "layerCount",
878
+ "usesBiases",
879
+ "batchFirst",
880
+ "isBidirectional",
881
+ "returnsSequences",
882
+ "dropout",
883
+ "resultMode",
884
+ ),
885
+ "descriptorWithInputSize_hiddenSize_layerCount_usesBiases_batchFirst_isBidirectional_returnsSequences_dropout_resultMode_",
886
+ )
887
+ objc.registerNewKeywords(
888
+ "MLCLSTMDescriptor",
889
+ (
890
+ "inputSize",
891
+ "hiddenSize",
892
+ "layerCount",
893
+ "usesBiases",
894
+ "isBidirectional",
895
+ "dropout",
896
+ ),
897
+ "descriptorWithInputSize_hiddenSize_layerCount_usesBiases_isBidirectional_dropout_",
898
+ )
899
+ objc.registerNewKeywords(
900
+ "MLCLSTMLayer",
901
+ ("descriptor", "inputWeights", "hiddenWeights", "biases"),
902
+ "layerWithDescriptor_inputWeights_hiddenWeights_biases_",
903
+ )
904
+ objc.registerNewKeywords(
905
+ "MLCLSTMLayer",
906
+ ("descriptor", "inputWeights", "hiddenWeights", "peepholeWeights", "biases"),
907
+ "layerWithDescriptor_inputWeights_hiddenWeights_peepholeWeights_biases_",
908
+ )
909
+ objc.registerNewKeywords(
910
+ "MLCLSTMLayer",
911
+ (
912
+ "descriptor",
913
+ "inputWeights",
914
+ "hiddenWeights",
915
+ "peepholeWeights",
916
+ "biases",
917
+ "gateActivations",
918
+ "outputResultActivation",
919
+ ),
920
+ "layerWithDescriptor_inputWeights_hiddenWeights_peepholeWeights_biases_gateActivations_outputResultActivation_",
921
+ )
922
+ objc.registerNewKeywords(
923
+ "MLCLayerNormalizationLayer",
924
+ ("normalizedShape", "beta", "gamma", "varianceEpsilon"),
925
+ "layerWithNormalizedShape_beta_gamma_varianceEpsilon_",
926
+ )
927
+ objc.registerNewKeywords(
928
+ "MLCLossDescriptor", ("type", "reductionType"), "descriptorWithType_reductionType_"
929
+ )
930
+ objc.registerNewKeywords(
931
+ "MLCLossDescriptor",
932
+ ("type", "reductionType", "weight"),
933
+ "descriptorWithType_reductionType_weight_",
934
+ )
935
+ objc.registerNewKeywords(
936
+ "MLCLossDescriptor",
937
+ ("type", "reductionType", "weight", "labelSmoothing", "classCount"),
938
+ "descriptorWithType_reductionType_weight_labelSmoothing_classCount_",
939
+ )
940
+ objc.registerNewKeywords(
941
+ "MLCLossDescriptor",
942
+ (
943
+ "type",
944
+ "reductionType",
945
+ "weight",
946
+ "labelSmoothing",
947
+ "classCount",
948
+ "epsilon",
949
+ "delta",
950
+ ),
951
+ "descriptorWithType_reductionType_weight_labelSmoothing_classCount_epsilon_delta_",
952
+ )
953
+ objc.registerNewKeywords(
954
+ "MLCLossLayer",
955
+ ("reductionType", "labelSmoothing", "classCount", "weight"),
956
+ "categoricalCrossEntropyLossWithReductionType_labelSmoothing_classCount_weight_",
957
+ )
958
+ objc.registerNewKeywords(
959
+ "MLCLossLayer",
960
+ ("reductionType", "labelSmoothing", "classCount", "weights"),
961
+ "categoricalCrossEntropyLossWithReductionType_labelSmoothing_classCount_weights_",
962
+ )
963
+ objc.registerNewKeywords(
964
+ "MLCLossLayer",
965
+ ("reductionType", "weight"),
966
+ "cosineDistanceLossWithReductionType_weight_",
967
+ )
968
+ objc.registerNewKeywords(
969
+ "MLCLossLayer",
970
+ ("reductionType", "weights"),
971
+ "cosineDistanceLossWithReductionType_weights_",
972
+ )
973
+ objc.registerNewKeywords(
974
+ "MLCLossLayer", ("reductionType", "weight"), "hingeLossWithReductionType_weight_"
975
+ )
976
+ objc.registerNewKeywords(
977
+ "MLCLossLayer", ("reductionType", "weights"), "hingeLossWithReductionType_weights_"
978
+ )
979
+ objc.registerNewKeywords(
980
+ "MLCLossLayer",
981
+ ("reductionType", "delta", "weight"),
982
+ "huberLossWithReductionType_delta_weight_",
983
+ )
984
+ objc.registerNewKeywords(
985
+ "MLCLossLayer",
986
+ ("reductionType", "delta", "weights"),
987
+ "huberLossWithReductionType_delta_weights_",
988
+ )
989
+ objc.registerNewKeywords("MLCLossLayer", ("descriptor",), "layerWithDescriptor_")
990
+ objc.registerNewKeywords(
991
+ "MLCLossLayer", ("descriptor", "weights"), "layerWithDescriptor_weights_"
992
+ )
993
+ objc.registerNewKeywords(
994
+ "MLCLossLayer",
995
+ ("reductionType", "epsilon", "weight"),
996
+ "logLossWithReductionType_epsilon_weight_",
997
+ )
998
+ objc.registerNewKeywords(
999
+ "MLCLossLayer",
1000
+ ("reductionType", "epsilon", "weights"),
1001
+ "logLossWithReductionType_epsilon_weights_",
1002
+ )
1003
+ objc.registerNewKeywords(
1004
+ "MLCLossLayer",
1005
+ ("reductionType", "weight"),
1006
+ "meanAbsoluteErrorLossWithReductionType_weight_",
1007
+ )
1008
+ objc.registerNewKeywords(
1009
+ "MLCLossLayer",
1010
+ ("reductionType", "weights"),
1011
+ "meanAbsoluteErrorLossWithReductionType_weights_",
1012
+ )
1013
+ objc.registerNewKeywords(
1014
+ "MLCLossLayer",
1015
+ ("reductionType", "weight"),
1016
+ "meanSquaredErrorLossWithReductionType_weight_",
1017
+ )
1018
+ objc.registerNewKeywords(
1019
+ "MLCLossLayer",
1020
+ ("reductionType", "weights"),
1021
+ "meanSquaredErrorLossWithReductionType_weights_",
1022
+ )
1023
+ objc.registerNewKeywords(
1024
+ "MLCLossLayer",
1025
+ ("reductionType", "labelSmoothing", "weight"),
1026
+ "sigmoidCrossEntropyLossWithReductionType_labelSmoothing_weight_",
1027
+ )
1028
+ objc.registerNewKeywords(
1029
+ "MLCLossLayer",
1030
+ ("reductionType", "labelSmoothing", "weights"),
1031
+ "sigmoidCrossEntropyLossWithReductionType_labelSmoothing_weights_",
1032
+ )
1033
+ objc.registerNewKeywords(
1034
+ "MLCLossLayer",
1035
+ ("reductionType", "labelSmoothing", "classCount", "weight"),
1036
+ "softmaxCrossEntropyLossWithReductionType_labelSmoothing_classCount_weight_",
1037
+ )
1038
+ objc.registerNewKeywords(
1039
+ "MLCLossLayer",
1040
+ ("reductionType", "labelSmoothing", "classCount", "weights"),
1041
+ "softmaxCrossEntropyLossWithReductionType_labelSmoothing_classCount_weights_",
1042
+ )
1043
+ objc.registerNewKeywords(
1044
+ "MLCMatMulDescriptor",
1045
+ ("alpha", "transposesX", "transposesY"),
1046
+ "descriptorWithAlpha_transposesX_transposesY_",
1047
+ )
1048
+ objc.registerNewKeywords("MLCMatMulLayer", ("descriptor",), "layerWithDescriptor_")
1049
+ objc.registerNewKeywords(
1050
+ "MLCMultiheadAttentionDescriptor",
1051
+ ("modelDimension", "headCount"),
1052
+ "descriptorWithModelDimension_headCount_",
1053
+ )
1054
+ objc.registerNewKeywords(
1055
+ "MLCMultiheadAttentionDescriptor",
1056
+ (
1057
+ "modelDimension",
1058
+ "keyDimension",
1059
+ "valueDimension",
1060
+ "headCount",
1061
+ "dropout",
1062
+ "hasBiases",
1063
+ "hasAttentionBiases",
1064
+ "addsZeroAttention",
1065
+ ),
1066
+ "descriptorWithModelDimension_keyDimension_valueDimension_headCount_dropout_hasBiases_hasAttentionBiases_addsZeroAttention_",
1067
+ )
1068
+ objc.registerNewKeywords(
1069
+ "MLCMultiheadAttentionLayer",
1070
+ ("descriptor", "weights", "biases", "attentionBiases"),
1071
+ "layerWithDescriptor_weights_biases_attentionBiases_",
1072
+ )
1073
+ objc.registerNewKeywords(
1074
+ "MLCOptimizerDescriptor",
1075
+ (
1076
+ "learningRate",
1077
+ "gradientRescale",
1078
+ "appliesGradientClipping",
1079
+ "gradientClipMax",
1080
+ "gradientClipMin",
1081
+ "regularizationType",
1082
+ "regularizationScale",
1083
+ ),
1084
+ "descriptorWithLearningRate_gradientRescale_appliesGradientClipping_gradientClipMax_gradientClipMin_regularizationType_regularizationScale_",
1085
+ )
1086
+ objc.registerNewKeywords(
1087
+ "MLCOptimizerDescriptor",
1088
+ (
1089
+ "learningRate",
1090
+ "gradientRescale",
1091
+ "appliesGradientClipping",
1092
+ "gradientClippingType",
1093
+ "gradientClipMax",
1094
+ "gradientClipMin",
1095
+ "maximumClippingNorm",
1096
+ "customGlobalNorm",
1097
+ "regularizationType",
1098
+ "regularizationScale",
1099
+ ),
1100
+ "descriptorWithLearningRate_gradientRescale_appliesGradientClipping_gradientClippingType_gradientClipMax_gradientClipMin_maximumClippingNorm_customGlobalNorm_regularizationType_regularizationScale_",
1101
+ )
1102
+ objc.registerNewKeywords(
1103
+ "MLCOptimizerDescriptor",
1104
+ ("learningRate", "gradientRescale", "regularizationType", "regularizationScale"),
1105
+ "descriptorWithLearningRate_gradientRescale_regularizationType_regularizationScale_",
1106
+ )
1107
+ objc.registerNewKeywords(
1108
+ "MLCPaddingLayer",
1109
+ ("constantPadding", "constantValue"),
1110
+ "layerWithConstantPadding_constantValue_",
1111
+ )
1112
+ objc.registerNewKeywords(
1113
+ "MLCPaddingLayer", ("reflectionPadding",), "layerWithReflectionPadding_"
1114
+ )
1115
+ objc.registerNewKeywords(
1116
+ "MLCPaddingLayer", ("symmetricPadding",), "layerWithSymmetricPadding_"
1117
+ )
1118
+ objc.registerNewKeywords("MLCPaddingLayer", ("zeroPadding",), "layerWithZeroPadding_")
1119
+ objc.registerNewKeywords(
1120
+ "MLCPoolingDescriptor",
1121
+ (
1122
+ "kernelSizes",
1123
+ "strides",
1124
+ "dilationRates",
1125
+ "paddingPolicy",
1126
+ "paddingSizes",
1127
+ "countIncludesPadding",
1128
+ ),
1129
+ "averagePoolingDescriptorWithKernelSizes_strides_dilationRates_paddingPolicy_paddingSizes_countIncludesPadding_",
1130
+ )
1131
+ objc.registerNewKeywords(
1132
+ "MLCPoolingDescriptor",
1133
+ ("kernelSizes", "strides", "paddingPolicy", "paddingSizes", "countIncludesPadding"),
1134
+ "averagePoolingDescriptorWithKernelSizes_strides_paddingPolicy_paddingSizes_countIncludesPadding_",
1135
+ )
1136
+ objc.registerNewKeywords(
1137
+ "MLCPoolingDescriptor",
1138
+ ("kernelSizes", "strides", "dilationRates", "paddingPolicy", "paddingSizes"),
1139
+ "l2NormPoolingDescriptorWithKernelSizes_strides_dilationRates_paddingPolicy_paddingSizes_",
1140
+ )
1141
+ objc.registerNewKeywords(
1142
+ "MLCPoolingDescriptor",
1143
+ ("kernelSizes", "strides", "paddingPolicy", "paddingSizes"),
1144
+ "l2NormPoolingDescriptorWithKernelSizes_strides_paddingPolicy_paddingSizes_",
1145
+ )
1146
+ objc.registerNewKeywords(
1147
+ "MLCPoolingDescriptor",
1148
+ ("kernelSizes", "strides", "dilationRates", "paddingPolicy", "paddingSizes"),
1149
+ "maxPoolingDescriptorWithKernelSizes_strides_dilationRates_paddingPolicy_paddingSizes_",
1150
+ )
1151
+ objc.registerNewKeywords(
1152
+ "MLCPoolingDescriptor",
1153
+ ("kernelSizes", "strides", "paddingPolicy", "paddingSizes"),
1154
+ "maxPoolingDescriptorWithKernelSizes_strides_paddingPolicy_paddingSizes_",
1155
+ )
1156
+ objc.registerNewKeywords(
1157
+ "MLCPoolingDescriptor",
1158
+ ("type", "kernelSize", "stride"),
1159
+ "poolingDescriptorWithType_kernelSize_stride_",
1160
+ )
1161
+ objc.registerNewKeywords("MLCPoolingLayer", ("descriptor",), "layerWithDescriptor_")
1162
+ objc.registerNewKeywords(
1163
+ "MLCRMSPropOptimizer", ("descriptor",), "optimizerWithDescriptor_"
1164
+ )
1165
+ objc.registerNewKeywords(
1166
+ "MLCRMSPropOptimizer",
1167
+ ("descriptor", "momentumScale", "alpha", "epsilon", "isCentered"),
1168
+ "optimizerWithDescriptor_momentumScale_alpha_epsilon_isCentered_",
1169
+ )
1170
+ objc.registerNewKeywords(
1171
+ "MLCReductionLayer",
1172
+ ("reductionType", "dimension"),
1173
+ "layerWithReductionType_dimension_",
1174
+ )
1175
+ objc.registerNewKeywords(
1176
+ "MLCReductionLayer",
1177
+ ("reductionType", "dimensions"),
1178
+ "layerWithReductionType_dimensions_",
1179
+ )
1180
+ objc.registerNewKeywords("MLCReshapeLayer", ("shape",), "layerWithShape_")
1181
+ objc.registerNewKeywords("MLCSGDOptimizer", ("descriptor",), "optimizerWithDescriptor_")
1182
+ objc.registerNewKeywords(
1183
+ "MLCSGDOptimizer",
1184
+ ("descriptor", "momentumScale", "usesNesterovMomentum"),
1185
+ "optimizerWithDescriptor_momentumScale_usesNesterovMomentum_",
1186
+ )
1187
+ objc.registerNewKeywords(
1188
+ "MLCScatterLayer",
1189
+ ("dimension", "reductionType"),
1190
+ "layerWithDimension_reductionType_",
1191
+ )
1192
+ objc.registerNewKeywords(
1193
+ "MLCSliceLayer", ("start", "end", "stride"), "sliceLayerWithStart_end_stride_"
1194
+ )
1195
+ objc.registerNewKeywords("MLCSoftmaxLayer", ("operation",), "layerWithOperation_")
1196
+ objc.registerNewKeywords(
1197
+ "MLCSoftmaxLayer", ("operation", "dimension"), "layerWithOperation_dimension_"
1198
+ )
1199
+ objc.registerNewKeywords(
1200
+ "MLCSplitLayer", ("splitCount", "dimension"), "layerWithSplitCount_dimension_"
1201
+ )
1202
+ objc.registerNewKeywords(
1203
+ "MLCSplitLayer",
1204
+ ("splitSectionLengths", "dimension"),
1205
+ "layerWithSplitSectionLengths_dimension_",
1206
+ )
1207
+ objc.registerNewKeywords("MLCTensor", ("descriptor",), "tensorWithDescriptor_")
1208
+ objc.registerNewKeywords(
1209
+ "MLCTensor", ("descriptor", "data"), "tensorWithDescriptor_data_"
1210
+ )
1211
+ objc.registerNewKeywords(
1212
+ "MLCTensor", ("descriptor", "fillWithData"), "tensorWithDescriptor_fillWithData_"
1213
+ )
1214
+ objc.registerNewKeywords(
1215
+ "MLCTensor",
1216
+ ("descriptor", "randomInitializerType"),
1217
+ "tensorWithDescriptor_randomInitializerType_",
1218
+ )
1219
+ objc.registerNewKeywords(
1220
+ "MLCTensor",
1221
+ ("sequenceLength", "featureChannelCount", "batchSize"),
1222
+ "tensorWithSequenceLength_featureChannelCount_batchSize_",
1223
+ )
1224
+ objc.registerNewKeywords(
1225
+ "MLCTensor",
1226
+ ("sequenceLength", "featureChannelCount", "batchSize", "data"),
1227
+ "tensorWithSequenceLength_featureChannelCount_batchSize_data_",
1228
+ )
1229
+ objc.registerNewKeywords(
1230
+ "MLCTensor",
1231
+ ("sequenceLength", "featureChannelCount", "batchSize", "randomInitializerType"),
1232
+ "tensorWithSequenceLength_featureChannelCount_batchSize_randomInitializerType_",
1233
+ )
1234
+ objc.registerNewKeywords(
1235
+ "MLCTensor",
1236
+ ("sequenceLengths", "sortedSequences", "featureChannelCount", "batchSize", "data"),
1237
+ "tensorWithSequenceLengths_sortedSequences_featureChannelCount_batchSize_data_",
1238
+ )
1239
+ objc.registerNewKeywords(
1240
+ "MLCTensor",
1241
+ (
1242
+ "sequenceLengths",
1243
+ "sortedSequences",
1244
+ "featureChannelCount",
1245
+ "batchSize",
1246
+ "randomInitializerType",
1247
+ ),
1248
+ "tensorWithSequenceLengths_sortedSequences_featureChannelCount_batchSize_randomInitializerType_",
1249
+ )
1250
+ objc.registerNewKeywords("MLCTensor", ("shape",), "tensorWithShape_")
1251
+ objc.registerNewKeywords(
1252
+ "MLCTensor", ("shape", "dataType"), "tensorWithShape_dataType_"
1253
+ )
1254
+ objc.registerNewKeywords(
1255
+ "MLCTensor", ("shape", "data", "dataType"), "tensorWithShape_data_dataType_"
1256
+ )
1257
+ objc.registerNewKeywords(
1258
+ "MLCTensor",
1259
+ ("shape", "fillWithData", "dataType"),
1260
+ "tensorWithShape_fillWithData_dataType_",
1261
+ )
1262
+ objc.registerNewKeywords(
1263
+ "MLCTensor",
1264
+ ("shape", "randomInitializerType"),
1265
+ "tensorWithShape_randomInitializerType_",
1266
+ )
1267
+ objc.registerNewKeywords(
1268
+ "MLCTensor",
1269
+ ("shape", "randomInitializerType", "dataType"),
1270
+ "tensorWithShape_randomInitializerType_dataType_",
1271
+ )
1272
+ objc.registerNewKeywords(
1273
+ "MLCTensor",
1274
+ ("width", "height", "featureChannelCount", "batchSize"),
1275
+ "tensorWithWidth_height_featureChannelCount_batchSize_",
1276
+ )
1277
+ objc.registerNewKeywords(
1278
+ "MLCTensor",
1279
+ ("width", "height", "featureChannelCount", "batchSize", "data"),
1280
+ "tensorWithWidth_height_featureChannelCount_batchSize_data_",
1281
+ )
1282
+ objc.registerNewKeywords(
1283
+ "MLCTensor",
1284
+ ("width", "height", "featureChannelCount", "batchSize", "data", "dataType"),
1285
+ "tensorWithWidth_height_featureChannelCount_batchSize_data_dataType_",
1286
+ )
1287
+ objc.registerNewKeywords(
1288
+ "MLCTensor",
1289
+ ("width", "height", "featureChannelCount", "batchSize", "fillWithData", "dataType"),
1290
+ "tensorWithWidth_height_featureChannelCount_batchSize_fillWithData_dataType_",
1291
+ )
1292
+ objc.registerNewKeywords(
1293
+ "MLCTensor",
1294
+ ("width", "height", "featureChannelCount", "batchSize", "randomInitializerType"),
1295
+ "tensorWithWidth_height_featureChannelCount_batchSize_randomInitializerType_",
1296
+ )
1297
+ objc.registerNewKeywords(
1298
+ "MLCTensorData", ("bytesNoCopy", "length"), "dataWithBytesNoCopy_length_"
1299
+ )
1300
+ objc.registerNewKeywords(
1301
+ "MLCTensorData",
1302
+ ("bytesNoCopy", "length", "deallocator"),
1303
+ "dataWithBytesNoCopy_length_deallocator_",
1304
+ )
1305
+ objc.registerNewKeywords(
1306
+ "MLCTensorData",
1307
+ ("immutableBytesNoCopy", "length"),
1308
+ "dataWithImmutableBytesNoCopy_length_",
1309
+ )
1310
+ objc.registerNewKeywords(
1311
+ "MLCTensorDescriptor",
1312
+ ("featureChannelCount", "dataType"),
1313
+ "convolutionBiasesDescriptorWithFeatureChannelCount_dataType_",
1314
+ )
1315
+ objc.registerNewKeywords(
1316
+ "MLCTensorDescriptor",
1317
+ ("inputFeatureChannelCount", "outputFeatureChannelCount", "dataType"),
1318
+ "convolutionWeightsDescriptorWithInputFeatureChannelCount_outputFeatureChannelCount_dataType_",
1319
+ )
1320
+ objc.registerNewKeywords(
1321
+ "MLCTensorDescriptor",
1322
+ (
1323
+ "width",
1324
+ "height",
1325
+ "inputFeatureChannelCount",
1326
+ "outputFeatureChannelCount",
1327
+ "dataType",
1328
+ ),
1329
+ "convolutionWeightsDescriptorWithWidth_height_inputFeatureChannelCount_outputFeatureChannelCount_dataType_",
1330
+ )
1331
+ objc.registerNewKeywords(
1332
+ "MLCTensorDescriptor", ("shape", "dataType"), "descriptorWithShape_dataType_"
1333
+ )
1334
+ objc.registerNewKeywords(
1335
+ "MLCTensorDescriptor",
1336
+ ("shape", "sequenceLengths", "sortedSequences", "dataType"),
1337
+ "descriptorWithShape_sequenceLengths_sortedSequences_dataType_",
1338
+ )
1339
+ objc.registerNewKeywords(
1340
+ "MLCTensorDescriptor",
1341
+ ("width", "height", "featureChannelCount", "batchSize"),
1342
+ "descriptorWithWidth_height_featureChannelCount_batchSize_",
1343
+ )
1344
+ objc.registerNewKeywords(
1345
+ "MLCTensorDescriptor",
1346
+ ("width", "height", "featureChannelCount", "batchSize", "dataType"),
1347
+ "descriptorWithWidth_height_featureChannelCount_batchSize_dataType_",
1348
+ )
1349
+ objc.registerNewKeywords("MLCTensorParameter", ("tensor",), "parameterWithTensor_")
1350
+ objc.registerNewKeywords(
1351
+ "MLCTensorParameter",
1352
+ ("tensor", "optimizerData"),
1353
+ "parameterWithTensor_optimizerData_",
1354
+ )
1355
+ objc.registerNewKeywords(
1356
+ "MLCTrainingGraph",
1357
+ ("graphObjects", "lossLayer", "optimizer"),
1358
+ "graphWithGraphObjects_lossLayer_optimizer_",
1359
+ )
1360
+ objc.registerNewKeywords("MLCTransposeLayer", ("dimensions",), "layerWithDimensions_")
1361
+ objc.registerNewKeywords("MLCUpsampleLayer", ("shape",), "layerWithShape_")
1362
+ objc.registerNewKeywords(
1363
+ "MLCUpsampleLayer",
1364
+ ("shape", "sampleMode", "alignsCorners"),
1365
+ "layerWithShape_sampleMode_alignsCorners_",
1366
+ )
1367
+ objc.registerNewKeywords(
1368
+ "MLCYOLOLossDescriptor",
1369
+ ("anchorBoxes", "anchorBoxCount"),
1370
+ "descriptorWithAnchorBoxes_anchorBoxCount_",
1371
+ )
1372
+ objc.registerNewKeywords("MLCYOLOLossLayer", ("descriptor",), "layerWithDescriptor_")
1373
+ expressions = {}
1374
+
1375
+ # END OF FILE