pyobjc-framework-MetalPerformanceShaders 10.1__tar.gz → 11.0__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.
- pyobjc_framework_metalperformanceshaders-11.0/Lib/MetalPerformanceShaders/__init__.py +277 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/Lib/MetalPerformanceShaders/_metadata.py +1394 -10
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/Lib/pyobjc_framework_MetalPerformanceShaders.egg-info/PKG-INFO +5 -5
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/Lib/pyobjc_framework_MetalPerformanceShaders.egg-info/SOURCES.txt +7 -6
- pyobjc_framework_metalperformanceshaders-11.0/Lib/pyobjc_framework_MetalPerformanceShaders.egg-info/pyobjc-build-info.txt +3 -0
- pyobjc_framework_metalperformanceshaders-11.0/Lib/pyobjc_framework_MetalPerformanceShaders.egg-info/requires.txt +2 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/License.txt +1 -1
- pyobjc_framework_metalperformanceshaders-11.0/Modules/_MetalPerformanceShaders.m +67 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/Modules/_MetalPerformanceShaders_inlines.m +51 -17
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/Modules/pyobjc-api.h +1 -1
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/Modules/pyobjc-compat.h +80 -5
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PKG-INFO +5 -5
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpscore_mpscoretypes.py +10 -1
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpscore_mpsndarray.py +35 -0
- pyobjc_framework_metalperformanceshaders-11.0/PyObjCTest/test_mpscore_mpsndarrayidentity.py +26 -0
- pyobjc_framework_metalperformanceshaders-11.0/PyObjCTest/test_mpscore_mpsndarrayquantization.py +36 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/metadata/MetalPerformanceShaders.fwinfo +34 -1
- pyobjc-framework-MetalPerformanceShaders-10.1/metadata/raw/arm64-14.0.fwinfo → pyobjc_framework_metalperformanceshaders-11.0/metadata/raw/arm64-14.5.fwinfo +69 -9
- pyobjc_framework_metalperformanceshaders-11.0/metadata/raw/arm64-15.0.fwinfo +55516 -0
- pyobjc-framework-MetalPerformanceShaders-10.1/metadata/raw/x86_64-14.0.fwinfo → pyobjc_framework_metalperformanceshaders-11.0/metadata/raw/x86_64-14.5.fwinfo +69 -9
- pyobjc_framework_metalperformanceshaders-11.0/metadata/raw/x86_64-15.0.fwinfo +55516 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/pyobjc_setup.py +121 -27
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/setup.py +2 -4
- pyobjc-framework-MetalPerformanceShaders-10.1/Lib/MetalPerformanceShaders/__init__.py +0 -38
- pyobjc-framework-MetalPerformanceShaders-10.1/Lib/pyobjc_framework_MetalPerformanceShaders.egg-info/requires.txt +0 -2
- pyobjc-framework-MetalPerformanceShaders-10.1/Modules/_MetalPerformanceShaders.m +0 -40
- pyobjc-framework-MetalPerformanceShaders-10.1/metadata/raw/arm64-13.0.fwinfo +0 -54725
- pyobjc-framework-MetalPerformanceShaders-10.1/metadata/raw/arm64-13.1.fwinfo +0 -54728
- pyobjc-framework-MetalPerformanceShaders-10.1/metadata/raw/x86_64-13.0.fwinfo +0 -54725
- pyobjc-framework-MetalPerformanceShaders-10.1/metadata/raw/x86_64-13.1.fwinfo +0 -54728
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/Lib/pyobjc_framework_MetalPerformanceShaders.egg-info/dependency_links.txt +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/Lib/pyobjc_framework_MetalPerformanceShaders.egg-info/not-zip-safe +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/Lib/pyobjc_framework_MetalPerformanceShaders.egg-info/top_level.txt +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/MANIFEST.in +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/Modules/_MetalPerformanceShaders_protocols.m +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/__init__.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_metalperformanceshaders.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpscore_mpscommandbuffer.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpscore_mpsfunctionconstantindices.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpscore_mpsimage.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpscore_mpskerneltypes.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpscore_mpskeyedunarchiver.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpscore_mpsstate.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsimage_mpsimageconvolution.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsimage_mpsimagehistogram.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsimage_mpsimagekernel.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsimage_mpsimagekeypoint.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsimage_mpsimagemorphology.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsimage_mpsimagethreshold.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsimage_mpsimagetypes.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsmatrix_mpsmatrixcombination.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsmatrix_mpsmatrixdecomposition.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsmatrix_mpsmatrixmultiplication.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsmatrix_mpsmatrixrandom.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsmatrix_mpsmatrixsolve.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsmatrix_mpsndarraymultiarykernel.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsndarray_mpsndarraytypes.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsneuralnetwork_mpscnnconvolution.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsneuralnetwork_mpscnngroupnormalization.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsneuralnetwork_mpscnninstancenormalization.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsneuralnetwork_mpscnnkernel.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsneuralnetwork_mpscnnloss.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsneuralnetwork_mpscnnmath.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsneuralnetwork_mpscnnneuraltypes.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsneuralnetwork_mpscnntypes.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsneuralnetwork_mpscnnupsampling.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsneuralnetwork_mpsmatrixbatchnormalization.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsneuralnetwork_mpsmatrixsum.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsneuralnetwork_mpsneuralnetworktypes.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsneuralnetwork_mpsnnbatchnormalization.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsneuralnetwork_mpsnngraph.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsneuralnetwork_mpsnngraphnodes.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsneuralnetwork_mpsnngridsample.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsneuralnetwork_mpsnnoptimzers.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsneuralnetwork_mpsnnreshape.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsneuralnetwork_mpsnnresize.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsneuralnetwork_mpsrnnlayer.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsrayintersector_mpsaccelerationstructure.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsrayintersector_mpsinstanceaccelerationstructure.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsrayintersector_mpspolygonaccelerationstructure.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsrayintersector_mpsrayintersector.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsrayintersector_mpsrayintersectortypes.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/PyObjCTest/test_mpsrayintersector_mpssvgf.py +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/metadata/metadata.ini +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/metadata/raw/arm64-13.3.fwinfo +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/metadata/raw/x86_64-13.3.fwinfo +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/pyproject.toml +0 -0
- {pyobjc-framework-MetalPerformanceShaders-10.1 → pyobjc_framework_metalperformanceshaders-11.0}/setup.cfg +0 -0
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Python mapping for the Metal 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 Metal
|
|
13
|
+
import objc
|
|
14
|
+
from . import _metadata, _MetalPerformanceShaders
|
|
15
|
+
from ._inlines import _inline_list_
|
|
16
|
+
|
|
17
|
+
dir_func, getattr_func = objc.createFrameworkDirAndGetattr(
|
|
18
|
+
name="MetalPerformanceShaders",
|
|
19
|
+
frameworkIdentifier="com.apple.MetalPerformanceShaders.MetalPerformanceShaders",
|
|
20
|
+
frameworkPath=objc.pathForFramework(
|
|
21
|
+
"/System/Library/Frameworks/MetalPerformanceShaders.framework"
|
|
22
|
+
),
|
|
23
|
+
globals_dict=globals(),
|
|
24
|
+
inline_list=_inline_list_,
|
|
25
|
+
parents=(
|
|
26
|
+
_MetalPerformanceShaders,
|
|
27
|
+
Metal,
|
|
28
|
+
),
|
|
29
|
+
metadict=_metadata.__dict__,
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
globals()["__dir__"] = dir_func
|
|
33
|
+
globals()["__getattr__"] = getattr_func
|
|
34
|
+
|
|
35
|
+
for cls, sel in (
|
|
36
|
+
("MMPSAccelerationStructureGroupTKMeshBufferAllocator", b"init"),
|
|
37
|
+
("MPSAccelerationStructure", b"init"),
|
|
38
|
+
("MPSRayIntersector", b"init"),
|
|
39
|
+
("MPSCNNMultiaryKernel", b"initWithDevice:"),
|
|
40
|
+
("MPSMatrixSum", b"initWithDevice:"),
|
|
41
|
+
("MPSNNGraph", b"initWithDevice:"),
|
|
42
|
+
("MPSNNImageNode", b"init"),
|
|
43
|
+
("MPSNNStateNode", b"init"),
|
|
44
|
+
("MPSNNFilterNode", b"init"),
|
|
45
|
+
("MPSNNGradientFilterNode", b"gradientFilterWithSources:"),
|
|
46
|
+
("MPSNNGradientFilterNode", b"gradientFiltersWithSources:"),
|
|
47
|
+
("MPSNNGradientFilterNode", b"gradientFilterWithSource:"),
|
|
48
|
+
("MPSNNGradientFilterNode", b"gradientFiltersWithSource:"),
|
|
49
|
+
("MPSCNNBinaryConvolutionNode", b"convolutionGradientState"),
|
|
50
|
+
("MPSCNNConvolutionTransposeNode", b"convolutionGradientState"),
|
|
51
|
+
("MPSCNNNeuronNode", b"init"),
|
|
52
|
+
("MPSCNNNeuronPReLUNode", b"initWithSource:"),
|
|
53
|
+
("MPSCNNNeuronPReLUNode", b"nodeWithSource:"),
|
|
54
|
+
("MPSCNNNeuronGradientNode", b"init"),
|
|
55
|
+
("MPSNNBinaryArithmeticNode", b"gradientFilterWithSources:"),
|
|
56
|
+
("MPSCNNLossNode", b"gradientFilterWithSources:"),
|
|
57
|
+
("MPSCNNYOLOLossNode", b"gradientFilterWithSources:"),
|
|
58
|
+
("MPSNNConcatenationNode", b"gradientFilterWithSources:"),
|
|
59
|
+
("MPSNNLossGradientNode", b"gradientFilterWithSources:"),
|
|
60
|
+
("MPSNNInitialGradientNode", b"gradientFilterWithSources:"),
|
|
61
|
+
("MPSCNNArithmeticGradientState", b"init"),
|
|
62
|
+
("MPSCNNArithmetic", b"initWithDevice:"),
|
|
63
|
+
("MPSCNNArithmeticGradient", b"initWithDevice:"),
|
|
64
|
+
("MPSCNNArithmeticGradient", b"initWithDevice:isSecondarySourceFilter:"),
|
|
65
|
+
("MPSCNNUpsampling", b"initWithDevice:"),
|
|
66
|
+
("MPSCNNConvolution", b"initWithDevice:"),
|
|
67
|
+
("MPSCNNConvolutionGradient", b"initWithDevice:"),
|
|
68
|
+
("MPSCNNFullyConnected", b"initWithDevice:"),
|
|
69
|
+
("MPSCNNFullyConnectedGradient", b"initWithDevice:"),
|
|
70
|
+
("MPSCNNConvolutionTranspose", b"initWithDevice:"),
|
|
71
|
+
("MPSCNNConvolutionTransposeGradient", b"initWithDevice:"),
|
|
72
|
+
("MPSCNNBinaryConvolution", b"initWithDevice:"),
|
|
73
|
+
("MPSCNNBinaryFullyConnected", b"initWithDevice:"),
|
|
74
|
+
("MPSNNResizeBilinear", b"initWithDevice:"),
|
|
75
|
+
("MPSNNCropAndResizeBilinear", b"initWithDevice:"),
|
|
76
|
+
("MPSCNNBatchNormalizationState", b"initWithResource:"),
|
|
77
|
+
(
|
|
78
|
+
"MPSCNNBatchNormalizationState",
|
|
79
|
+
b"temporaryStateWithCommandBuffer:bufferSize:",
|
|
80
|
+
),
|
|
81
|
+
(
|
|
82
|
+
"MPSCNNBatchNormalizationState",
|
|
83
|
+
b"temporaryStateWithCommandBuffer:textureDescriptor:",
|
|
84
|
+
),
|
|
85
|
+
("MPSCNNBatchNormalization", b"initWithDevice:"),
|
|
86
|
+
(
|
|
87
|
+
"MPSCNNBatchNormalization",
|
|
88
|
+
b"encodeToCommandBuffer:sourceImage:destinationState:destinationImage:",
|
|
89
|
+
),
|
|
90
|
+
(
|
|
91
|
+
"MPSCNNBatchNormalization",
|
|
92
|
+
b"encodeToCommandBuffer:sourceImage:destinationState:destinationStateIsTemporary:",
|
|
93
|
+
),
|
|
94
|
+
(
|
|
95
|
+
"MPSCNNBatchNormalization",
|
|
96
|
+
b"encodeToCommandBuffer:sourceImage:destinationStates:destinationImages:",
|
|
97
|
+
),
|
|
98
|
+
(
|
|
99
|
+
"MPSCNNBatchNormalization",
|
|
100
|
+
b"encodeToCommandBuffer:sourceImage:destinationStates:destinationStateIsTemporary:",
|
|
101
|
+
),
|
|
102
|
+
(
|
|
103
|
+
"MPSCNNBatchNormalizationStatistics",
|
|
104
|
+
b"encodeToCommandBuffer:sourceImage:destinationImages:",
|
|
105
|
+
),
|
|
106
|
+
(
|
|
107
|
+
"MPSCNNBatchNormalizationStatistics",
|
|
108
|
+
b"encodeToCommandBuffer:sourceImage:destinationImage:",
|
|
109
|
+
),
|
|
110
|
+
("MPSCNNBatchNormalizationStatistics", b"encodeToCommandBuffer:sourceImage:"),
|
|
111
|
+
("MPSCNNBatchNormalizationStatistics", b"encodeToCommandBuffer:sourceImages:"),
|
|
112
|
+
("MPSCNNBatchNormalizationState", b"initWithResource:"),
|
|
113
|
+
(
|
|
114
|
+
"MPSCNNBatchNormalizationGradient",
|
|
115
|
+
b"encodeToCommandBuffer:primaryImage:secondaryImage:destinationImage:",
|
|
116
|
+
),
|
|
117
|
+
(
|
|
118
|
+
"MPSCNNBatchNormalizationGradient",
|
|
119
|
+
b"encodeToCommandBuffer:primaryImages:secondaryImages:destinationImages:",
|
|
120
|
+
),
|
|
121
|
+
(
|
|
122
|
+
"MPSCNNBatchNormalizationGradient",
|
|
123
|
+
b"encodeToCommandBuffer:primaryImage:secondaryImage:",
|
|
124
|
+
),
|
|
125
|
+
(
|
|
126
|
+
"MPSCNNBatchNormalizationGradient",
|
|
127
|
+
b"encodeToCommandBuffer:primaryImages:secondaryImages:",
|
|
128
|
+
),
|
|
129
|
+
(
|
|
130
|
+
"MPSCNNBatchNormalizationStatisticsGradient",
|
|
131
|
+
b"encodeToCommandBuffer:sourceGradient:sourceImage:gradientState:",
|
|
132
|
+
),
|
|
133
|
+
(
|
|
134
|
+
"MPSCNNBatchNormalizationStatisticsGradient",
|
|
135
|
+
b"encodeToCommandBuffer:sourceGradient:sourceImage:gradientState:destinationGradient:",
|
|
136
|
+
),
|
|
137
|
+
(
|
|
138
|
+
"MPSCNNBatchNormalizationStatisticsGradient",
|
|
139
|
+
b"encodeToCommandBuffer:sourceGradients:sourceImages:gradientStates:destinationGradients:",
|
|
140
|
+
),
|
|
141
|
+
("MPSCNNLossDataDescriptor", b"init"),
|
|
142
|
+
("MPSCNNLossLabels", b"init"),
|
|
143
|
+
("MPSCNNLossDescriptor", b"init"),
|
|
144
|
+
("MPSCNNLoss", b"initWithDevice:"),
|
|
145
|
+
("MPSCNNYOLOLossDescriptor", b"init"),
|
|
146
|
+
("MPSCNNYOLOLoss", b"initWithDevice:"),
|
|
147
|
+
("MPSNNForwardLoss", b"initWithDevice:"),
|
|
148
|
+
("MPSNNLossGradient", b"initWithDevice:"),
|
|
149
|
+
("MPSRNNImageInferenceLayer", b"initWithDevice:"),
|
|
150
|
+
("MPSRNNMatrixInferenceLayer", b"initWithDevice:"),
|
|
151
|
+
("MPSRNNMatrixTrainingLayer", b"initWithDevice:"),
|
|
152
|
+
("MPSNNReduceUnary", b"initWithDevice:"),
|
|
153
|
+
("MPSNNReduceBinary", b"initWithDevice:"),
|
|
154
|
+
("MPSNNNeuronDescriptor", b"init"),
|
|
155
|
+
("MPSCNNNeuron", b"initWithDevice:"),
|
|
156
|
+
("MPSCNNNeuronGradient", b"initWithDevice:"),
|
|
157
|
+
("MPSCNNNeuronLinear", b"initWithDevice:"),
|
|
158
|
+
("MPSCNNNeuronReLU", b"initWithDevice:"),
|
|
159
|
+
("MPSCNNNeuronPReLU", b"initWithDevice:"),
|
|
160
|
+
("MPSCNNNeuronHardSigmoid", b"initWithDevice:"),
|
|
161
|
+
("MPSCNNNeuronTanH", b"initWithDevice:"),
|
|
162
|
+
("MPSCNNNeuronSoftPlus", b"initWithDevice:"),
|
|
163
|
+
("MPSCNNNeuronELU", b"initWithDevice:"),
|
|
164
|
+
("MPSCNNNeuronReLUN", b"initWithDevice:"),
|
|
165
|
+
("MPSCNNNeuronPower", b"initWithDevice:"),
|
|
166
|
+
("MPSCNNNeuronExponential", b"initWithDevice:"),
|
|
167
|
+
("MPSCNNNeuronLogarithm", b"initWithDevice:"),
|
|
168
|
+
("MPSNNOptimizer", b"initWithDevice:"),
|
|
169
|
+
("MPSNNOptimizerStochasticGradientDescent", b"initWithDevice:"),
|
|
170
|
+
("MPSNNOptimizerRMSProp", b"initWithDevice:"),
|
|
171
|
+
("MPSNNOptimizerAdam", b"initWithDevice:"),
|
|
172
|
+
("MPSCNNPooling", b"initWithDevice:"),
|
|
173
|
+
("MPSCNNPoolingGradient", b"initWithDevice:"),
|
|
174
|
+
(
|
|
175
|
+
"MPSCNNDilatedPoolingMaxGradient",
|
|
176
|
+
b"initWithDevice:kernelWidth:kernelHeight:strideInPixelsX:strideInPixelsY:",
|
|
177
|
+
),
|
|
178
|
+
(
|
|
179
|
+
"MPSCNNInstanceNormalizationGradientState",
|
|
180
|
+
b"temporaryStateWithCommandBuffer:textureDescriptor:",
|
|
181
|
+
),
|
|
182
|
+
(
|
|
183
|
+
"MPSCNNInstanceNormalizationGradientState",
|
|
184
|
+
b"temporaryStateWithCommandBuffer:",
|
|
185
|
+
),
|
|
186
|
+
(
|
|
187
|
+
"MPSCNNInstanceNormalizationGradientState",
|
|
188
|
+
b"temporaryStateWithCommandBuffer:bufferSize:",
|
|
189
|
+
),
|
|
190
|
+
(
|
|
191
|
+
"MPSCNNInstanceNormalizationGradientState",
|
|
192
|
+
b"initWithDevice:textureDescriptor:",
|
|
193
|
+
),
|
|
194
|
+
("MPSCNNInstanceNormalizationGradientState", b"initWithResource:"),
|
|
195
|
+
("MPSCNNInstanceNormalizationGradientState", b"initWithDevice::bufferSize:"),
|
|
196
|
+
("MPSCNNInstanceNormalization", b"initWithDevice:"),
|
|
197
|
+
("MPSCNNSpatialNormalization", b"initWithDevice:"),
|
|
198
|
+
("MPSCNNLocalContrastNormalization", b"initWithDevice:"),
|
|
199
|
+
("MPSCNNCrossChannelNormalization", b"initWithDevice:"),
|
|
200
|
+
("MPSCNNDropoutGradientState", b"init"),
|
|
201
|
+
("MPSCNNDropout", b"initWithDevice:"),
|
|
202
|
+
("MPSCNNDropoutGradient", b"initWithDevice:"),
|
|
203
|
+
(
|
|
204
|
+
"MPSCNNGroupNormalizationGradientState",
|
|
205
|
+
b"temporaryStateWithCommandBuffer:textureDescriptor:",
|
|
206
|
+
),
|
|
207
|
+
("MPSCNNGroupNormalizationGradientState", b"temporaryStateWithCommandBuffer:"),
|
|
208
|
+
(
|
|
209
|
+
"MPSCNNGroupNormalizationGradientState",
|
|
210
|
+
b"temporaryStateWithCommandBuffer:bufferSize:",
|
|
211
|
+
),
|
|
212
|
+
("MPSCNNGroupNormalizationGradientState", b"initWithDevice:textureDescriptor:"),
|
|
213
|
+
("MPSCNNGroupNormalizationGradientState", b"initWithResource:"),
|
|
214
|
+
("MPSCNNGroupNormalizationGradientState", b"initWithDevice::bufferSize:"),
|
|
215
|
+
("MPSCNNGroupNormalization", b"initWithDevice:"),
|
|
216
|
+
("MPSNDArrayMultiaryBase", b"initWithDevice:"),
|
|
217
|
+
("MPSNDArrayMultiaryGradientKernel", b"initWithDevice:sourceCount:"),
|
|
218
|
+
("MPSNDArrayUnaryKernel", b"initWithDevice:sourceCount:"),
|
|
219
|
+
(
|
|
220
|
+
"MPSNDArrayUnaryGradientKernel",
|
|
221
|
+
b"initWithDevice:sourceCount:sourceGradientIndex:",
|
|
222
|
+
),
|
|
223
|
+
("MPSNDArrayBinaryKernel", b"initWithDevice:sourceCount:"),
|
|
224
|
+
(
|
|
225
|
+
"MPSNDArrayBinaryPrimaryGradientKernel",
|
|
226
|
+
b"initWithDevice:sourceCount:sourceGradientIndex:",
|
|
227
|
+
),
|
|
228
|
+
(
|
|
229
|
+
"MPSNDArrayBinarySecondaryGradientKernel",
|
|
230
|
+
b"initWithDevice:sourceCount:sourceGradientIndex:",
|
|
231
|
+
),
|
|
232
|
+
("MPSCommandBuffer", b"init"),
|
|
233
|
+
("MPSKeyedUnarchiver", b"unarchivedObjectOfClasses:fromData:error:"),
|
|
234
|
+
("MPSKeyedUnarchiver", b"unarchivedObjectOfClass:fromData:error:"),
|
|
235
|
+
("MPSKeyedUnarchiver", b"init"),
|
|
236
|
+
("MPSKeyedUnarchiver", b"initForReadingFromData:error:"),
|
|
237
|
+
("MPSKeyedUnarchiver", b"unarchiveObjectWithData:"),
|
|
238
|
+
("MPSKeyedUnarchiver", b"unarchiveTopLevelObjectWithData:error:"),
|
|
239
|
+
("MPSKeyedUnarchiver", b"unarchiveObjectWithFile:"),
|
|
240
|
+
("MPSKeyedUnarchiver", b"initForReadingWithData:"),
|
|
241
|
+
("MPSNDArrayDescriptor", b"init"),
|
|
242
|
+
("MPSNDArray", b"init"),
|
|
243
|
+
("MPSTemporaryNDArray", b"initWithDevice:descriptor:"),
|
|
244
|
+
("MPSState", b"init"),
|
|
245
|
+
("MPSImage", b"init"),
|
|
246
|
+
("MPSTemporaryImage", b"initWithDevice:imageDescriptor:"),
|
|
247
|
+
("MPSMatrix", b"init"),
|
|
248
|
+
("MPSVector", b"init"),
|
|
249
|
+
("MPSTemporaryMatrix", b"initWithBuffer:descriptor:"),
|
|
250
|
+
("MPSTemporaryVector", b"initWithBuffer:descriptor:"),
|
|
251
|
+
("MPSImageThresholdBinary", b"initWithDevice:"),
|
|
252
|
+
("MPSImageThresholdBinaryInverse", b"initWithDevice:"),
|
|
253
|
+
("MPSImageThresholdTruncate", b"initWithDevice:"),
|
|
254
|
+
("MPSImageThresholdToZero", b"initWithDevice:"),
|
|
255
|
+
("MPSImageThresholdToZeroInverse", b"initWithDevice:"),
|
|
256
|
+
("MPSImageArithmetic", b"initWithDevice:"),
|
|
257
|
+
("MPSImageReduceUnary", b"initWithDevice:"),
|
|
258
|
+
("MPSImageMedian", b"initWithDevice:"),
|
|
259
|
+
("MPSImageAreaMax", b"initWithDevice:"),
|
|
260
|
+
("MPSImageDilate", b"initWithDevice:"),
|
|
261
|
+
("MPSImageBox", b"initWithDevice:"),
|
|
262
|
+
("MPSImageGaussianBlur", b"initWithDevice:"),
|
|
263
|
+
("MPSImageGuidedFilter", b"initWithDevice:"),
|
|
264
|
+
("MPSImageFindKeypoints", b"initWithDevice:"),
|
|
265
|
+
("MPSMatrixFindTopK", b"initWithDevice:"),
|
|
266
|
+
("MPSMatrixRandom", b"initWithDevice:"),
|
|
267
|
+
("MPSMatrixMultiplication", b"initWithDevice:"),
|
|
268
|
+
("MPSMatrixVectorMultiplication", b"initWithDevice:"),
|
|
269
|
+
("MPSMatrixCopyDescriptor", b"init"),
|
|
270
|
+
("MPSMatrixCopy", b"initWithDevice:"),
|
|
271
|
+
):
|
|
272
|
+
objc.registerUnavailableMethod(cls, sel)
|
|
273
|
+
|
|
274
|
+
del sys.modules["MetalPerformanceShaders._metadata"]
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
globals().pop("_setup")()
|