pyobjc-framework-CoreML 10.1__tar.gz → 10.3__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 (82) hide show
  1. pyobjc_framework_coreml-10.3/Lib/CoreML/__init__.py +119 -0
  2. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/Lib/CoreML/_metadata.py +95 -12
  3. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/Lib/pyobjc_framework_CoreML.egg-info/PKG-INFO +3 -3
  4. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/Lib/pyobjc_framework_CoreML.egg-info/SOURCES.txt +19 -6
  5. pyobjc_framework_coreml-10.3/Lib/pyobjc_framework_CoreML.egg-info/requires.txt +2 -0
  6. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/License.txt +1 -1
  7. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/PKG-INFO +3 -3
  8. pyobjc_framework_coreml-10.3/PyObjCTest/test_mlcomputeplan.py +21 -0
  9. pyobjc_framework_coreml-10.3/PyObjCTest/test_mlcomputeplancost.py +8 -0
  10. pyobjc_framework_coreml-10.3/PyObjCTest/test_mlcomputeplandeviceusage.py +8 -0
  11. pyobjc_framework_coreml-10.3/PyObjCTest/test_mlmodelstructure.py +15 -0
  12. pyobjc_framework_coreml-10.3/PyObjCTest/test_mlmodelstructureneuralnetwork.py +8 -0
  13. pyobjc_framework_coreml-10.3/PyObjCTest/test_mlmodelstructureneuralnetworklayer.py +8 -0
  14. pyobjc_framework_coreml-10.3/PyObjCTest/test_mlmodelstructurepipeline.py +8 -0
  15. pyobjc_framework_coreml-10.3/PyObjCTest/test_mlmodelstructureprogram.py +8 -0
  16. pyobjc_framework_coreml-10.3/PyObjCTest/test_mlmodelstructureprogramargument.py +8 -0
  17. pyobjc_framework_coreml-10.3/PyObjCTest/test_mlmodelstructureprogrambinding.py +8 -0
  18. pyobjc_framework_coreml-10.3/PyObjCTest/test_mlmodelstructureprogramblock.py +8 -0
  19. pyobjc_framework_coreml-10.3/PyObjCTest/test_mlmodelstructureprogramfunction.py +8 -0
  20. pyobjc_framework_coreml-10.3/PyObjCTest/test_mlmodelstructureprogramnamedvaluetype.py +8 -0
  21. pyobjc_framework_coreml-10.3/PyObjCTest/test_mlmodelstructureprogramoperation.py +8 -0
  22. pyobjc_framework_coreml-10.3/PyObjCTest/test_mlmodelstructureprogramvalue.py +8 -0
  23. pyobjc_framework_coreml-10.3/PyObjCTest/test_mlmodelstructureprogramvaluetype.py +8 -0
  24. pyobjc_framework_coreml-10.3/PyObjCTest/test_mlreshapefrequencyhint.py +9 -0
  25. pyobjc-framework-CoreML-10.1/metadata/raw/arm64-14.0.fwinfo → pyobjc_framework_coreml-10.3/metadata/raw/arm64-14.5.fwinfo +2607 -1228
  26. pyobjc-framework-CoreML-10.1/metadata/raw/x86_64-14.0.fwinfo → pyobjc_framework_coreml-10.3/metadata/raw/x86_64-14.5.fwinfo +2607 -1228
  27. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/setup.py +1 -1
  28. pyobjc-framework-CoreML-10.1/Lib/CoreML/__init__.py +0 -37
  29. pyobjc-framework-CoreML-10.1/Lib/pyobjc_framework_CoreML.egg-info/requires.txt +0 -2
  30. pyobjc-framework-CoreML-10.1/metadata/raw/arm64-12.1.fwinfo +0 -4249
  31. pyobjc-framework-CoreML-10.1/metadata/raw/arm64-13.0.fwinfo +0 -4511
  32. pyobjc-framework-CoreML-10.1/metadata/raw/x86_64-12.1.fwinfo +0 -4249
  33. pyobjc-framework-CoreML-10.1/metadata/raw/x86_64-13.0.fwinfo +0 -4511
  34. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/Lib/pyobjc_framework_CoreML.egg-info/dependency_links.txt +0 -0
  35. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/Lib/pyobjc_framework_CoreML.egg-info/not-zip-safe +0 -0
  36. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/Lib/pyobjc_framework_CoreML.egg-info/top_level.txt +0 -0
  37. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/MANIFEST.in +0 -0
  38. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/Modules/_CoreML.m +0 -0
  39. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/Modules/_CoreML_protocols.m +0 -0
  40. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/Modules/pyobjc-api.h +0 -0
  41. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/Modules/pyobjc-compat.h +0 -0
  42. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/PyObjCTest/__init__.py +0 -0
  43. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/PyObjCTest/test_coreml.py +0 -0
  44. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/PyObjCTest/test_mlallcomputedevices.py +0 -0
  45. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/PyObjCTest/test_mlbatchprovider.py +0 -0
  46. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/PyObjCTest/test_mlcomputedeviceprotocol.py +0 -0
  47. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/PyObjCTest/test_mlcustomlayer.py +0 -0
  48. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/PyObjCTest/test_mlcustommodel.py +0 -0
  49. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/PyObjCTest/test_mldictionaryfeatureprovider.py +0 -0
  50. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/PyObjCTest/test_mlfeaturedescription.py +0 -0
  51. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/PyObjCTest/test_mlfeatureprovider.py +0 -0
  52. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/PyObjCTest/test_mlfeaturetype.py +0 -0
  53. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/PyObjCTest/test_mlfeaturevalue.py +0 -0
  54. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/PyObjCTest/test_mlfeaturevalue_mlimageconversion.py +0 -0
  55. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/PyObjCTest/test_mlimagesizeconstrainttype.py +0 -0
  56. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/PyObjCTest/test_mlmodel.py +0 -0
  57. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/PyObjCTest/test_mlmodel_mlmodelcompilation.py +0 -0
  58. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/PyObjCTest/test_mlmodelasset.py +0 -0
  59. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/PyObjCTest/test_mlmodelcollection.py +0 -0
  60. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/PyObjCTest/test_mlmodelconfiguration.py +0 -0
  61. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/PyObjCTest/test_mlmodelerror.py +0 -0
  62. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/PyObjCTest/test_mlmodelmetadatakeys.py +0 -0
  63. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/PyObjCTest/test_mlmultiarray.py +0 -0
  64. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/PyObjCTest/test_mlmultiarrayshapeconstrainttype.py +0 -0
  65. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/PyObjCTest/test_mlpredictionoptions.py +0 -0
  66. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/PyObjCTest/test_mltask.py +0 -0
  67. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/PyObjCTest/test_mlupdateprogressevent.py +0 -0
  68. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/PyObjCTest/test_mlupdateprogresshandlers.py +0 -0
  69. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/PyObjCTest/test_mlupdatetask.py +0 -0
  70. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/PyObjCTest/test_mlwritable.py +0 -0
  71. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/metadata/CoreML.fwinfo +0 -0
  72. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/metadata/metadata.ini +0 -0
  73. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/metadata/raw/arm64-12.3.fwinfo +0 -0
  74. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/metadata/raw/arm64-13.3.fwinfo +0 -0
  75. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/metadata/raw/x86_64-10.14.fwinfo +0 -0
  76. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/metadata/raw/x86_64-10.15.fwinfo +0 -0
  77. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/metadata/raw/x86_64-10.16.fwinfo +0 -0
  78. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/metadata/raw/x86_64-12.3.fwinfo +0 -0
  79. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/metadata/raw/x86_64-13.3.fwinfo +0 -0
  80. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/pyobjc_setup.py +0 -0
  81. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/pyproject.toml +0 -0
  82. {pyobjc-framework-CoreML-10.1 → pyobjc_framework_coreml-10.3}/setup.cfg +0 -0
@@ -0,0 +1,119 @@
1
+ """
2
+ Python mapping for the CoreML framework.
3
+
4
+ This module does not contain docstrings for the wrapped code, check Apple's
5
+ documentation for details on how to use these functions and classes.
6
+ """
7
+
8
+
9
+ def _setup():
10
+ import sys
11
+
12
+ import Foundation
13
+ import objc
14
+ from . import _metadata, _CoreML
15
+
16
+ dir_func, getattr_func = objc.createFrameworkDirAndGetattr(
17
+ name="CoreML",
18
+ frameworkIdentifier="com.apple.CoreML",
19
+ frameworkPath=objc.pathForFramework(
20
+ "/System/Library/Frameworks/CoreML.framework"
21
+ ),
22
+ globals_dict=globals(),
23
+ inline_list=None,
24
+ parents=(
25
+ _CoreML,
26
+ Foundation,
27
+ ),
28
+ metadict=_metadata.__dict__,
29
+ )
30
+
31
+ globals()["__dir__"] = dir_func
32
+ globals()["__getattr__"] = getattr_func
33
+
34
+ for clsname in (
35
+ "MLComputePlan",
36
+ "MLComputePlanCost",
37
+ "MLComputePlanDeviceUsage",
38
+ "MLModelStructureNeuralNetwork",
39
+ "MLModelStructurePipeline",
40
+ "MLModelStructureProgram",
41
+ "MLModelStructureProgramArgument",
42
+ "MLModelStructureProgramBinding",
43
+ "MLModelStructureProgramBlock",
44
+ "MLModelStructureProgramFunction",
45
+ "MLModelStructureProgramNamedValueType",
46
+ "MLModelStructureProgramOperation",
47
+ "MLModelStructureProgramValue",
48
+ "MLModelStructureProgramValueType",
49
+ ):
50
+ try:
51
+ objc.lookUpClass(clsname).__objc_final__ = True
52
+ except objc.error:
53
+ pass
54
+
55
+ for cls, sel in (
56
+ ("MLMetricKey", b"init"),
57
+ ("MLMetricKey", b"new"),
58
+ ("MLModelStructureProgramValue", b"init"),
59
+ ("MLModelStructureProgramValue", b"new"),
60
+ ("MLGPUComputeDevice", b"init"),
61
+ ("MLGPUComputeDevice", b"new"),
62
+ ("MLComputePlanDeviceUsage", b"init"),
63
+ ("MLComputePlanDeviceUsage", b"new"),
64
+ ("MLCPUComputeDevice", b"init"),
65
+ ("MLCPUComputeDevice", b"new"),
66
+ ("MLModelStructure", b"init"),
67
+ ("MLModelStructure", b"new"),
68
+ ("MLUpdateProgressHandlers", b"init"),
69
+ ("MLUpdateProgressHandlers", b"new"),
70
+ ("MLModelCollection", b"init"),
71
+ ("MLModelCollection", b"new"),
72
+ ("MLModelStructureProgramNamedValueType", b"init"),
73
+ ("MLModelStructureProgramNamedValueType", b"new"),
74
+ ("MLUpdateTask", b"init"),
75
+ ("MLUpdateTask", b"new"),
76
+ ("MLModelCollectionEntry", b"init"),
77
+ ("MLModelCollectionEntry", b"new"),
78
+ ("MLModelStructureProgramFunction", b"init"),
79
+ ("MLModelStructureProgramFunction", b"new"),
80
+ ("MLModelStructureProgram", b"init"),
81
+ ("MLModelStructureProgram", b"new"),
82
+ ("MLComputePlan", b"init"),
83
+ ("MLComputePlan", b"new"),
84
+ ("MLParameterKey", b"init"),
85
+ ("MLParameterKey", b"new"),
86
+ ("MLModelStructureProgramBinding", b"init"),
87
+ ("MLModelStructureProgramBinding", b"new"),
88
+ ("MLModelAsset", b"init"),
89
+ ("MLModelAsset", b"new"),
90
+ ("MLModelStructureProgramArgument", b"init"),
91
+ ("MLModelStructureProgramArgument", b"new"),
92
+ ("MLModelStructureProgramOperation", b"init"),
93
+ ("MLModelStructureProgramOperation", b"new"),
94
+ ("MLComputePlanCost", b"init"),
95
+ ("MLComputePlanCost", b"new"),
96
+ ("MLModelStructureNeuralNetwork", b"init"),
97
+ ("MLModelStructureNeuralNetwork", b"new"),
98
+ ("MLNeuralEngineComputeDevice", b"init"),
99
+ ("MLNeuralEngineComputeDevice", b"new"),
100
+ ("MLTask", b"init"),
101
+ ("MLTask", b"new"),
102
+ ("MLModelStructureNeuralNetworkLayer", b"init"),
103
+ ("MLModelStructureNeuralNetworkLayer", b"new"),
104
+ ("MLKey", b"init"),
105
+ ("MLKey", b"new"),
106
+ ("MLModelStructureProgramBlock", b"init"),
107
+ ("MLModelStructureProgramBlock", b"new"),
108
+ ("MLImageConstraint", b"init"),
109
+ ("MLModelStructurePipeline", b"init"),
110
+ ("MLModelStructurePipeline", b"new"),
111
+ ("MLModelStructureProgramValueType", b"init"),
112
+ ("MLModelStructureProgramValueType", b"new"),
113
+ ):
114
+ objc.registerUnavailableMethod(cls, sel)
115
+
116
+ del sys.modules["CoreML._metadata"]
117
+
118
+
119
+ globals().pop("_setup")()
@@ -1,6 +1,6 @@
1
1
  # This file is generated by objective.metadata
2
2
  #
3
- # Last update: Sat Jul 1 14:11:45 2023
3
+ # Last update: Sat May 18 09:20:28 2024
4
4
  #
5
5
  # flake8: noqa
6
6
 
@@ -31,7 +31,7 @@ else:
31
31
 
32
32
  misc = {}
33
33
  constants = """$MLFeatureValueImageOptionCropAndScale$MLFeatureValueImageOptionCropRect$MLModelAuthorKey$MLModelCollectionDidChangeNotification$MLModelCreatorDefinedKey$MLModelDescriptionKey$MLModelErrorDomain$MLModelLicenseKey$MLModelVersionStringKey$"""
34
- enums = """$MLComputeUnitsAll@2$MLComputeUnitsCPUAndGPU@1$MLComputeUnitsCPUAndNeuralEngine@3$MLComputeUnitsCPUOnly@0$MLFeatureTypeDictionary@6$MLFeatureTypeDouble@2$MLFeatureTypeImage@4$MLFeatureTypeInt64@1$MLFeatureTypeInvalid@0$MLFeatureTypeMultiArray@5$MLFeatureTypeSequence@7$MLFeatureTypeString@3$MLImageSizeConstraintTypeEnumerated@2$MLImageSizeConstraintTypeRange@3$MLImageSizeConstraintTypeUnspecified@0$MLModelErrorCustomLayer@4$MLModelErrorCustomModel@5$MLModelErrorFeatureType@1$MLModelErrorGeneric@0$MLModelErrorIO@3$MLModelErrorModelCollection@10$MLModelErrorModelDecryption@9$MLModelErrorModelDecryptionKeyFetch@8$MLModelErrorParameters@7$MLModelErrorPredictionCancelled@11$MLModelErrorUpdate@6$MLMultiArrayDataTypeDouble@65600$MLMultiArrayDataTypeFloat@65568$MLMultiArrayDataTypeFloat16@65552$MLMultiArrayDataTypeFloat32@65568$MLMultiArrayDataTypeFloat64@65600$MLMultiArrayDataTypeInt32@131104$MLMultiArrayShapeConstraintTypeEnumerated@2$MLMultiArrayShapeConstraintTypeRange@3$MLMultiArrayShapeConstraintTypeUnspecified@1$MLTaskStateCancelling@3$MLTaskStateCompleted@4$MLTaskStateFailed@5$MLTaskStateRunning@2$MLTaskStateSuspended@1$MLUpdateProgressEventEpochEnd@2$MLUpdateProgressEventMiniBatchEnd@4$MLUpdateProgressEventTrainingBegin@1$"""
34
+ enums = """$MLComputeUnitsAll@2$MLComputeUnitsCPUAndGPU@1$MLComputeUnitsCPUAndNeuralEngine@3$MLComputeUnitsCPUOnly@0$MLFeatureTypeDictionary@6$MLFeatureTypeDouble@2$MLFeatureTypeImage@4$MLFeatureTypeInt64@1$MLFeatureTypeInvalid@0$MLFeatureTypeMultiArray@5$MLFeatureTypeSequence@7$MLFeatureTypeString@3$MLImageSizeConstraintTypeEnumerated@2$MLImageSizeConstraintTypeRange@3$MLImageSizeConstraintTypeUnspecified@0$MLModelErrorCustomLayer@4$MLModelErrorCustomModel@5$MLModelErrorFeatureType@1$MLModelErrorGeneric@0$MLModelErrorIO@3$MLModelErrorModelCollection@10$MLModelErrorModelDecryption@9$MLModelErrorModelDecryptionKeyFetch@8$MLModelErrorParameters@7$MLModelErrorPredictionCancelled@11$MLModelErrorUpdate@6$MLMultiArrayDataTypeDouble@65600$MLMultiArrayDataTypeFloat@65568$MLMultiArrayDataTypeFloat16@65552$MLMultiArrayDataTypeFloat32@65568$MLMultiArrayDataTypeFloat64@65600$MLMultiArrayDataTypeInt32@131104$MLMultiArrayShapeConstraintTypeEnumerated@2$MLMultiArrayShapeConstraintTypeRange@3$MLMultiArrayShapeConstraintTypeUnspecified@1$MLReshapeFrequencyHintFrequent@0$MLReshapeFrequencyHintInfrequent@1$MLTaskStateCancelling@3$MLTaskStateCompleted@4$MLTaskStateFailed@5$MLTaskStateRunning@2$MLTaskStateSuspended@1$MLUpdateProgressEventEpochEnd@2$MLUpdateProgressEventMiniBatchEnd@4$MLUpdateProgressEventTrainingBegin@1$"""
35
35
  misc.update(
36
36
  {
37
37
  "MLMultiArrayDataType": NewType("MLMultiArrayDataType", int),
@@ -44,6 +44,7 @@ misc.update(
44
44
  "MLFeatureType": NewType("MLFeatureType", int),
45
45
  "MLModelError": NewType("MLModelError", int),
46
46
  "MLComputeUnits": NewType("MLComputeUnits", int),
47
+ "MLReshapeFrequencyHint": NewType("MLReshapeFrequencyHint", int),
47
48
  }
48
49
  )
49
50
  misc.update(
@@ -62,6 +63,42 @@ try:
62
63
  b"initWithDictionary:error:",
63
64
  {"arguments": {3: {"type_modifier": b"o"}}},
64
65
  )
66
+ r(
67
+ b"MLComputePlan",
68
+ b"loadContentsOfURL:configuration:completionHandler:",
69
+ {
70
+ "arguments": {
71
+ 4: {
72
+ "callable": {
73
+ "retval": {"type": b"v"},
74
+ "arguments": {
75
+ 0: {"type": b"^v"},
76
+ 1: {"type": b"@"},
77
+ 2: {"type": b"@"},
78
+ },
79
+ }
80
+ }
81
+ }
82
+ },
83
+ )
84
+ r(
85
+ b"MLComputePlan",
86
+ b"loadModelAsset:configuration:completionHandler:",
87
+ {
88
+ "arguments": {
89
+ 4: {
90
+ "callable": {
91
+ "retval": {"type": b"v"},
92
+ "arguments": {
93
+ 0: {"type": b"^v"},
94
+ 1: {"type": b"@"},
95
+ 2: {"type": b"@"},
96
+ },
97
+ }
98
+ }
99
+ }
100
+ },
101
+ )
65
102
  r(
66
103
  b"MLDictionaryFeatureProvider",
67
104
  b"initWithDictionary:error:",
@@ -304,6 +341,42 @@ try:
304
341
  {"arguments": {2: {"type": "Z"}}},
305
342
  )
306
343
  r(b"MLModelDescription", b"isUpdatable", {"retval": {"type": b"Z"}})
344
+ r(
345
+ b"MLModelStructure",
346
+ b"loadContentsOfURL:completionHandler:",
347
+ {
348
+ "arguments": {
349
+ 3: {
350
+ "callable": {
351
+ "retval": {"type": b"v"},
352
+ "arguments": {
353
+ 0: {"type": b"^v"},
354
+ 1: {"type": b"@"},
355
+ 2: {"type": b"@"},
356
+ },
357
+ }
358
+ }
359
+ }
360
+ },
361
+ )
362
+ r(
363
+ b"MLModelStructure",
364
+ b"loadModelAsset:completionHandler:",
365
+ {
366
+ "arguments": {
367
+ 3: {
368
+ "callable": {
369
+ "retval": {"type": b"v"},
370
+ "arguments": {
371
+ 0: {"type": b"^v"},
372
+ 1: {"type": b"@"},
373
+ 2: {"type": b"@"},
374
+ },
375
+ }
376
+ }
377
+ }
378
+ },
379
+ )
307
380
  r(b"MLMultiArray", b"dataPointer", {"retval": {"c_array_of_variable_length": True}})
308
381
  r(
309
382
  b"MLMultiArray",
@@ -437,11 +510,7 @@ try:
437
510
  b"updateTaskForModelAtURL:trainingData:progressHandlers:error:",
438
511
  {"arguments": {5: {"type_modifier": b"o"}}},
439
512
  )
440
- r(
441
- b"NSObject",
442
- b"count",
443
- {"required": True, "retval": {"type": sel32or64(b"i", b"q")}},
444
- )
513
+ r(b"NSObject", b"count", {"required": True, "retval": {"type": "q"}})
445
514
  r(
446
515
  b"NSObject",
447
516
  b"encodeToCommandBuffer:inputs:outputs:error:",
@@ -488,11 +557,7 @@ try:
488
557
  r(
489
558
  b"NSObject",
490
559
  b"featuresAtIndex:",
491
- {
492
- "required": True,
493
- "retval": {"type": b"@"},
494
- "arguments": {2: {"type": sel32or64(b"i", b"q")}},
495
- },
560
+ {"required": True, "retval": {"type": b"@"}, "arguments": {2: {"type": "q"}}},
496
561
  )
497
562
  r(
498
563
  b"NSObject",
@@ -618,6 +683,24 @@ try:
618
683
  )
619
684
  finally:
620
685
  objc._updatingMetadata(False)
686
+
687
+ objc.registerNewKeywordsFromSelector(
688
+ "MLArrayBatchProvider", b"initWithDictionary:error:"
689
+ )
690
+ objc.registerNewKeywordsFromSelector(
691
+ "MLArrayBatchProvider", b"initWithFeatureProviderArray:"
692
+ )
693
+ objc.registerNewKeywordsFromSelector(
694
+ "MLDictionaryFeatureProvider", b"initWithDictionary:error:"
695
+ )
696
+ objc.registerNewKeywordsFromSelector(
697
+ "MLMultiArray", b"initWithDataPointer:shape:dataType:strides:deallocator:error:"
698
+ )
699
+ objc.registerNewKeywordsFromSelector("MLMultiArray", b"initWithPixelBuffer:shape:")
700
+ objc.registerNewKeywordsFromSelector("MLMultiArray", b"initWithShape:dataType:error:")
701
+ objc.registerNewKeywordsFromSelector(
702
+ "MLUpdateProgressHandlers", b"initForEvents:progressHandler:completionHandler:"
703
+ )
621
704
  expressions = {}
622
705
 
623
706
  # END OF FILE
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyobjc-framework-CoreML
3
- Version: 10.1
3
+ Version: 10.3
4
4
  Summary: Wrappers for the framework CoreML on macOS
5
5
  Home-page: https://github.com/ronaldoussoren/pyobjc
6
6
  Author: Ronald Oussoren
@@ -30,8 +30,8 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
30
30
  Classifier: Topic :: Software Development :: User Interfaces
31
31
  Requires-Python: >=3.8
32
32
  Description-Content-Type: text/x-rst; charset=UTF-8
33
- Requires-Dist: pyobjc-core>=10.1
34
- Requires-Dist: pyobjc-framework-Cocoa>=10.1
33
+ Requires-Dist: pyobjc-core>=10.3
34
+ Requires-Dist: pyobjc-framework-Cocoa>=10.3
35
35
  Project-URL: Documentation, https://pyobjc.readthedocs.io/en/latest/
36
36
  Project-URL: Issue tracker, https://github.com/ronaldoussoren/pyobjc/issues
37
37
  Project-URL: Repository, https://github.com/ronaldoussoren/pyobjc
@@ -20,6 +20,9 @@ PyObjCTest/test_coreml.py
20
20
  PyObjCTest/test_mlallcomputedevices.py
21
21
  PyObjCTest/test_mlbatchprovider.py
22
22
  PyObjCTest/test_mlcomputedeviceprotocol.py
23
+ PyObjCTest/test_mlcomputeplan.py
24
+ PyObjCTest/test_mlcomputeplancost.py
25
+ PyObjCTest/test_mlcomputeplandeviceusage.py
23
26
  PyObjCTest/test_mlcustomlayer.py
24
27
  PyObjCTest/test_mlcustommodel.py
25
28
  PyObjCTest/test_mldictionaryfeatureprovider.py
@@ -36,9 +39,23 @@ PyObjCTest/test_mlmodelcollection.py
36
39
  PyObjCTest/test_mlmodelconfiguration.py
37
40
  PyObjCTest/test_mlmodelerror.py
38
41
  PyObjCTest/test_mlmodelmetadatakeys.py
42
+ PyObjCTest/test_mlmodelstructure.py
43
+ PyObjCTest/test_mlmodelstructureneuralnetwork.py
44
+ PyObjCTest/test_mlmodelstructureneuralnetworklayer.py
45
+ PyObjCTest/test_mlmodelstructurepipeline.py
46
+ PyObjCTest/test_mlmodelstructureprogram.py
47
+ PyObjCTest/test_mlmodelstructureprogramargument.py
48
+ PyObjCTest/test_mlmodelstructureprogrambinding.py
49
+ PyObjCTest/test_mlmodelstructureprogramblock.py
50
+ PyObjCTest/test_mlmodelstructureprogramfunction.py
51
+ PyObjCTest/test_mlmodelstructureprogramnamedvaluetype.py
52
+ PyObjCTest/test_mlmodelstructureprogramoperation.py
53
+ PyObjCTest/test_mlmodelstructureprogramvalue.py
54
+ PyObjCTest/test_mlmodelstructureprogramvaluetype.py
39
55
  PyObjCTest/test_mlmultiarray.py
40
56
  PyObjCTest/test_mlmultiarrayshapeconstrainttype.py
41
57
  PyObjCTest/test_mlpredictionoptions.py
58
+ PyObjCTest/test_mlreshapefrequencyhint.py
42
59
  PyObjCTest/test_mltask.py
43
60
  PyObjCTest/test_mlupdateprogressevent.py
44
61
  PyObjCTest/test_mlupdateprogresshandlers.py
@@ -46,16 +63,12 @@ PyObjCTest/test_mlupdatetask.py
46
63
  PyObjCTest/test_mlwritable.py
47
64
  metadata/CoreML.fwinfo
48
65
  metadata/metadata.ini
49
- metadata/raw/arm64-12.1.fwinfo
50
66
  metadata/raw/arm64-12.3.fwinfo
51
- metadata/raw/arm64-13.0.fwinfo
52
67
  metadata/raw/arm64-13.3.fwinfo
53
- metadata/raw/arm64-14.0.fwinfo
68
+ metadata/raw/arm64-14.5.fwinfo
54
69
  metadata/raw/x86_64-10.14.fwinfo
55
70
  metadata/raw/x86_64-10.15.fwinfo
56
71
  metadata/raw/x86_64-10.16.fwinfo
57
- metadata/raw/x86_64-12.1.fwinfo
58
72
  metadata/raw/x86_64-12.3.fwinfo
59
- metadata/raw/x86_64-13.0.fwinfo
60
73
  metadata/raw/x86_64-13.3.fwinfo
61
- metadata/raw/x86_64-14.0.fwinfo
74
+ metadata/raw/x86_64-14.5.fwinfo
@@ -0,0 +1,2 @@
1
+ pyobjc-core>=10.3
2
+ pyobjc-framework-Cocoa>=10.3
@@ -1,7 +1,7 @@
1
1
  (This is the MIT license, note that libffi-src is a separate product with its own license)
2
2
 
3
3
  Copyright 2002, 2003 - Bill Bumgarner, Ronald Oussoren, Steve Majewski, Lele Gaifax, et.al.
4
- Copyright 2003-2022 - Ronald Oussoren
4
+ Copyright 2003-2024 - Ronald Oussoren
5
5
 
6
6
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
7
7
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyobjc-framework-CoreML
3
- Version: 10.1
3
+ Version: 10.3
4
4
  Summary: Wrappers for the framework CoreML on macOS
5
5
  Home-page: https://github.com/ronaldoussoren/pyobjc
6
6
  Author: Ronald Oussoren
@@ -30,8 +30,8 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
30
30
  Classifier: Topic :: Software Development :: User Interfaces
31
31
  Requires-Python: >=3.8
32
32
  Description-Content-Type: text/x-rst; charset=UTF-8
33
- Requires-Dist: pyobjc-core>=10.1
34
- Requires-Dist: pyobjc-framework-Cocoa>=10.1
33
+ Requires-Dist: pyobjc-core>=10.3
34
+ Requires-Dist: pyobjc-framework-Cocoa>=10.3
35
35
 
36
36
 
37
37
  Wrappers for the "CoreML" framework on macOS.
@@ -0,0 +1,21 @@
1
+ from PyObjCTools.TestSupport import TestCase, min_os_level
2
+ import CoreML
3
+
4
+
5
+ class TestMLComputePlan(TestCase):
6
+ @min_os_level("14.4")
7
+ def testClasses(self):
8
+ self.assertTrue(CoreML.MLComputePlan.__objc_final__)
9
+
10
+ @min_os_level("14.4")
11
+ def testMethods(self):
12
+ self.assertArgIsBlock(
13
+ CoreML.MLComputePlan.loadContentsOfURL_configuration_completionHandler_,
14
+ 2,
15
+ b"v@@",
16
+ )
17
+ self.assertArgIsBlock(
18
+ CoreML.MLComputePlan.loadModelAsset_configuration_completionHandler_,
19
+ 2,
20
+ b"v@@",
21
+ )
@@ -0,0 +1,8 @@
1
+ from PyObjCTools.TestSupport import TestCase, min_os_level
2
+ import CoreML
3
+
4
+
5
+ class TestMLComputePlanCost(TestCase):
6
+ @min_os_level("14.4")
7
+ def testClasses(self):
8
+ self.assertTrue(CoreML.MLComputePlanCost.__objc_final__)
@@ -0,0 +1,8 @@
1
+ from PyObjCTools.TestSupport import TestCase, min_os_level
2
+ import CoreML
3
+
4
+
5
+ class TestMLComputePlanDeviceUsage(TestCase):
6
+ @min_os_level("14.4")
7
+ def testClasses(self):
8
+ self.assertTrue(CoreML.MLComputePlanDeviceUsage.__objc_final__)
@@ -0,0 +1,15 @@
1
+ from PyObjCTools.TestSupport import TestCase, min_os_level
2
+ import CoreML
3
+
4
+
5
+ class TestMLModelStructure(TestCase):
6
+ @min_os_level("14.4")
7
+ def test_classes(self):
8
+ self.assertFalse(CoreML.MLModelStructure.__objc_final__)
9
+
10
+ self.assertArgIsBlock(
11
+ CoreML.MLModelStructure.loadContentsOfURL_completionHandler_, 1, b"v@@"
12
+ )
13
+ self.assertArgIsBlock(
14
+ CoreML.MLModelStructure.loadModelAsset_completionHandler_, 1, b"v@@"
15
+ )
@@ -0,0 +1,8 @@
1
+ from PyObjCTools.TestSupport import TestCase, min_os_level
2
+ import CoreML
3
+
4
+
5
+ class TestMLModelStructureNeuralNetwork(TestCase):
6
+ @min_os_level("14.4")
7
+ def test_classes(self):
8
+ self.assertTrue(CoreML.MLModelStructureNeuralNetwork.__objc_final__)
@@ -0,0 +1,8 @@
1
+ from PyObjCTools.TestSupport import TestCase, min_os_level
2
+ import CoreML
3
+
4
+
5
+ class TestMLModelStructureNeuralNetworkLayer(TestCase):
6
+ @min_os_level("14.4")
7
+ def test_classes(self):
8
+ self.assertFalse(CoreML.MLModelStructureNeuralNetworkLayer.__objc_final__)
@@ -0,0 +1,8 @@
1
+ from PyObjCTools.TestSupport import TestCase, min_os_level
2
+ import CoreML
3
+
4
+
5
+ class TestMLModelStructurePipeline(TestCase):
6
+ @min_os_level("14.4")
7
+ def test_classes(self):
8
+ self.assertTrue(CoreML.MLModelStructurePipeline.__objc_final__)
@@ -0,0 +1,8 @@
1
+ from PyObjCTools.TestSupport import TestCase, min_os_level
2
+ import CoreML
3
+
4
+
5
+ class TestMLModelStructureProgram(TestCase):
6
+ @min_os_level("14.4")
7
+ def test_classes(self):
8
+ self.assertTrue(CoreML.MLModelStructureProgram.__objc_final__)
@@ -0,0 +1,8 @@
1
+ from PyObjCTools.TestSupport import TestCase, min_os_level
2
+ import CoreML
3
+
4
+
5
+ class TestMLModelStructureProgramArgument(TestCase):
6
+ @min_os_level("14.4")
7
+ def test_classes(self):
8
+ self.assertTrue(CoreML.MLModelStructureProgramArgument.__objc_final__)
@@ -0,0 +1,8 @@
1
+ from PyObjCTools.TestSupport import TestCase, min_os_level
2
+ import CoreML
3
+
4
+
5
+ class TestMLModelStructureProgramBinding(TestCase):
6
+ @min_os_level("14.4")
7
+ def test_classes(self):
8
+ self.assertTrue(CoreML.MLModelStructureProgramBinding.__objc_final__)
@@ -0,0 +1,8 @@
1
+ from PyObjCTools.TestSupport import TestCase, min_os_level
2
+ import CoreML
3
+
4
+
5
+ class TestMLModelStructureProgramBlock(TestCase):
6
+ @min_os_level("14.4")
7
+ def test_classes(self):
8
+ self.assertTrue(CoreML.MLModelStructureProgramBlock.__objc_final__)
@@ -0,0 +1,8 @@
1
+ from PyObjCTools.TestSupport import TestCase, min_os_level
2
+ import CoreML
3
+
4
+
5
+ class TestMLModelStructureProgramFunction(TestCase):
6
+ @min_os_level("14.4")
7
+ def test_classes(self):
8
+ self.assertTrue(CoreML.MLModelStructureProgramFunction.__objc_final__)
@@ -0,0 +1,8 @@
1
+ from PyObjCTools.TestSupport import TestCase, min_os_level
2
+ import CoreML
3
+
4
+
5
+ class TestMLModelStructureProgramNamedValueType(TestCase):
6
+ @min_os_level("14.4")
7
+ def test_classes(self):
8
+ self.assertTrue(CoreML.MLModelStructureProgramNamedValueType.__objc_final__)
@@ -0,0 +1,8 @@
1
+ from PyObjCTools.TestSupport import TestCase, min_os_level
2
+ import CoreML
3
+
4
+
5
+ class TestMLModelStructureProgramOperation(TestCase):
6
+ @min_os_level("14.4")
7
+ def test_classes(self):
8
+ self.assertTrue(CoreML.MLModelStructureProgramOperation.__objc_final__)
@@ -0,0 +1,8 @@
1
+ from PyObjCTools.TestSupport import TestCase, min_os_level
2
+ import CoreML
3
+
4
+
5
+ class TestMLModelStructureProgramValue(TestCase):
6
+ @min_os_level("14.4")
7
+ def test_classes(self):
8
+ self.assertTrue(CoreML.MLModelStructureProgramValue.__objc_final__)
@@ -0,0 +1,8 @@
1
+ from PyObjCTools.TestSupport import TestCase, min_os_level
2
+ import CoreML
3
+
4
+
5
+ class TestMLModelStructureProgramValueType(TestCase):
6
+ @min_os_level("14.4")
7
+ def test_classes(self):
8
+ self.assertTrue(CoreML.MLModelStructureProgramValueType.__objc_final__)
@@ -0,0 +1,9 @@
1
+ from PyObjCTools.TestSupport import TestCase
2
+ import CoreML
3
+
4
+
5
+ class TestMLReshapeFrequencyHint(TestCase):
6
+ def test_constants(self):
7
+ self.assertIsEnumType(CoreML.MLReshapeFrequencyHint)
8
+ self.assertEqual(CoreML.MLReshapeFrequencyHintFrequent, 0)
9
+ self.assertEqual(CoreML.MLReshapeFrequencyHintInfrequent, 1)