winrt-Microsoft.Windows.AI.MachineLearning 4!2.5.1__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.
- winrt_microsoft_windows_ai_machinelearning-4!2.5.1/.gitignore +5 -0
- winrt_microsoft_windows_ai_machinelearning-4!2.5.1/LICENSE +22 -0
- winrt_microsoft_windows_ai_machinelearning-4!2.5.1/PKG-INFO +55 -0
- winrt_microsoft_windows_ai_machinelearning-4!2.5.1/README.md +25 -0
- winrt_microsoft_windows_ai_machinelearning-4!2.5.1/pyproject.toml +59 -0
- winrt_microsoft_windows_ai_machinelearning-4!2.5.1/winrt/microsoft/windows/ai/machinelearning/__init__.py +23 -0
- winrt_microsoft_windows_ai_machinelearning-4!2.5.1/winrt/microsoft/windows/ai/machinelearning/__init__.pyi +222 -0
- winrt_microsoft_windows_ai_machinelearning-4!2.5.1/winrt/microsoft/windows/ai/machinelearning/_table.pywinrt.txt +1111 -0
- winrt_microsoft_windows_ai_machinelearning-4!2.5.1/winrt/microsoft/windows/ai/machinelearning/py.typed +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
+
Copyright (c) 2021-2026 David Lechner <david@pybricks.com>
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
SOFTWARE
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: winrt-Microsoft.Windows.AI.MachineLearning
|
|
3
|
+
Version: 4!2.5.1
|
|
4
|
+
Summary: PyWinRT projection of the Microsoft.Windows.AI.MachineLearning NuGet package
|
|
5
|
+
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
6
|
+
Project-URL: Repository, https://github.com/pywinrt/pywinrt
|
|
7
|
+
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/projection/wasdk/CHANGELOG.md
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
18
|
+
Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
|
|
19
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
20
|
+
Classifier: Typing :: Typed
|
|
21
|
+
Requires-Python: >=3.11
|
|
22
|
+
Requires-Dist: winrt-runtime<5,>=4.0.0
|
|
23
|
+
Requires-Dist: winrt-windows-foundation-collections>=4!10.0.28000.2705
|
|
24
|
+
Requires-Dist: winrt-windows-foundation>=4!10.0.28000.2705
|
|
25
|
+
Provides-Extra: all
|
|
26
|
+
Requires-Dist: winrt-windows-applicationmodel[all]>=4!10.0.28000.2705; extra == 'all'
|
|
27
|
+
Requires-Dist: winrt-windows-foundation-collections[all]>=4!10.0.28000.2705; extra == 'all'
|
|
28
|
+
Requires-Dist: winrt-windows-foundation[all]>=4!10.0.28000.2705; extra == 'all'
|
|
29
|
+
Description-Content-Type: text/markdown
|
|
30
|
+
|
|
31
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
32
|
+
|
|
33
|
+
# winrt-Microsoft.Windows.AI.MachineLearning
|
|
34
|
+
|
|
35
|
+
**IMPORTANT**: Windows App SDK packages cannot be used without the Windows App
|
|
36
|
+
Runtime. This has to be installed manually by the end user. Read the
|
|
37
|
+
[PyWinRT Windows App SDK documentation](https://pywinrt.readthedocs.io/en/latest/api/microsoft/)
|
|
38
|
+
for more information.
|
|
39
|
+
|
|
40
|
+
Windows Runtime (WinRT) APIs for the `Microsoft.Windows.AI.MachineLearning` namespace.
|
|
41
|
+
|
|
42
|
+
This package provides the `winrt.microsoft.windows.ai.machinelearning` module.
|
|
43
|
+
|
|
44
|
+
The WinRT APIs in it are those of version 2.5.1 of the
|
|
45
|
+
`Microsoft.WindowsAppSDK` NuGet package.
|
|
46
|
+
|
|
47
|
+
Its metadata comes from the `Microsoft.Windows.AI.MachineLearning` component,
|
|
48
|
+
version 2.1.74.
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
pip install winrt-Microsoft.Windows.AI.MachineLearning
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Other WinRT namespaces are packages of their own, so install the package of
|
|
55
|
+
each namespace your code imports from.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
2
|
+
|
|
3
|
+
# winrt-Microsoft.Windows.AI.MachineLearning
|
|
4
|
+
|
|
5
|
+
**IMPORTANT**: Windows App SDK packages cannot be used without the Windows App
|
|
6
|
+
Runtime. This has to be installed manually by the end user. Read the
|
|
7
|
+
[PyWinRT Windows App SDK documentation](https://pywinrt.readthedocs.io/en/latest/api/microsoft/)
|
|
8
|
+
for more information.
|
|
9
|
+
|
|
10
|
+
Windows Runtime (WinRT) APIs for the `Microsoft.Windows.AI.MachineLearning` namespace.
|
|
11
|
+
|
|
12
|
+
This package provides the `winrt.microsoft.windows.ai.machinelearning` module.
|
|
13
|
+
|
|
14
|
+
The WinRT APIs in it are those of version 2.5.1 of the
|
|
15
|
+
`Microsoft.WindowsAppSDK` NuGet package.
|
|
16
|
+
|
|
17
|
+
Its metadata comes from the `Microsoft.Windows.AI.MachineLearning` component,
|
|
18
|
+
version 2.1.74.
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
pip install winrt-Microsoft.Windows.AI.MachineLearning
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Other WinRT namespaces are packages of their own, so install the package of
|
|
25
|
+
each namespace your code imports from.
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
+
|
|
3
|
+
[build-system]
|
|
4
|
+
requires = ["hatchling", "winrt-table-compiler>=4.0.0,<5"]
|
|
5
|
+
build-backend = "hatchling.build"
|
|
6
|
+
|
|
7
|
+
[project]
|
|
8
|
+
name = "winrt-Microsoft.Windows.AI.MachineLearning"
|
|
9
|
+
version = "4!2.5.1"
|
|
10
|
+
description = "PyWinRT projection of the Microsoft.Windows.AI.MachineLearning NuGet package"
|
|
11
|
+
readme = "README.md"
|
|
12
|
+
license = "MIT"
|
|
13
|
+
license-files = ["LICENSE"]
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Operating System :: Microsoft :: Windows",
|
|
16
|
+
"Programming Language :: Python :: 3",
|
|
17
|
+
"Programming Language :: Python :: 3.11",
|
|
18
|
+
"Programming Language :: Python :: 3.12",
|
|
19
|
+
"Programming Language :: Python :: 3.13",
|
|
20
|
+
"Programming Language :: Python :: 3.14",
|
|
21
|
+
"Programming Language :: Python :: 3.15",
|
|
22
|
+
"Programming Language :: Python :: Implementation :: CPython",
|
|
23
|
+
"Intended Audience :: Developers",
|
|
24
|
+
"Programming Language :: Python :: Free Threading :: 2 - Beta",
|
|
25
|
+
"Typing :: Typed",
|
|
26
|
+
]
|
|
27
|
+
requires-python = ">=3.11"
|
|
28
|
+
dependencies = [
|
|
29
|
+
"winrt-runtime>=4.0.0,<5",
|
|
30
|
+
"winrt-Windows.Foundation>=4!10.0.28000.2705",
|
|
31
|
+
"winrt-Windows.Foundation.Collections>=4!10.0.28000.2705",
|
|
32
|
+
]
|
|
33
|
+
|
|
34
|
+
[project.optional-dependencies]
|
|
35
|
+
all = [
|
|
36
|
+
"winrt-Windows.ApplicationModel[all]>=4!10.0.28000.2705",
|
|
37
|
+
"winrt-Windows.Foundation[all]>=4!10.0.28000.2705",
|
|
38
|
+
"winrt-Windows.Foundation.Collections[all]>=4!10.0.28000.2705",
|
|
39
|
+
]
|
|
40
|
+
|
|
41
|
+
[project.urls]
|
|
42
|
+
Documentation = "https://pywinrt.readthedocs.io"
|
|
43
|
+
Repository = "https://github.com/pywinrt/pywinrt"
|
|
44
|
+
Changelog = "https://github.com/pywinrt/pywinrt/blob/main/projection/wasdk/CHANGELOG.md"
|
|
45
|
+
|
|
46
|
+
[tool.hatch.build.targets.sdist]
|
|
47
|
+
# The text form of the table is what the source distribution carries, and the
|
|
48
|
+
# compiled form is build output wherever it turns up. Hatchling reads no
|
|
49
|
+
# .gitignore above the package, so it has to be told about the latter.
|
|
50
|
+
only-include = ["winrt", "LICENSE", "README.md"]
|
|
51
|
+
exclude = ["**/_table.pywinrt"]
|
|
52
|
+
|
|
53
|
+
[tool.hatch.build.targets.wheel]
|
|
54
|
+
packages = ["winrt"]
|
|
55
|
+
exclude = ["**/_table.pywinrt.txt"]
|
|
56
|
+
|
|
57
|
+
# winrt.table.build_hooks in winrt-table-compiler, which compiles each table
|
|
58
|
+
# the package carries and puts the result beside the __init__.py that loads it.
|
|
59
|
+
[tool.hatch.build.targets.wheel.hooks.winrt-table-compiler]
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
2
|
+
|
|
3
|
+
import winrt.runtime._internals
|
|
4
|
+
import winrt.system
|
|
5
|
+
|
|
6
|
+
winrt.runtime._internals.load_projection(__spec__)
|
|
7
|
+
|
|
8
|
+
__all__ = [
|
|
9
|
+
"CatalogModelInstanceStatus",
|
|
10
|
+
"CatalogModelStatus",
|
|
11
|
+
"ExecutionProviderCertification",
|
|
12
|
+
"ExecutionProviderReadyResultState",
|
|
13
|
+
"ExecutionProviderReadyState",
|
|
14
|
+
"CatalogModelInfo",
|
|
15
|
+
"CatalogModelInstance",
|
|
16
|
+
"CatalogModelInstanceResult",
|
|
17
|
+
"ExecutionProvider",
|
|
18
|
+
"ExecutionProviderCatalog",
|
|
19
|
+
"ExecutionProviderReadyResult",
|
|
20
|
+
"ModelCatalog",
|
|
21
|
+
"ModelCatalogSource",
|
|
22
|
+
]
|
|
23
|
+
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
2
|
+
|
|
3
|
+
import collections.abc as _cabc
|
|
4
|
+
import enum
|
|
5
|
+
import types
|
|
6
|
+
import typing
|
|
7
|
+
from builtins import property as _property
|
|
8
|
+
|
|
9
|
+
import winrt.system
|
|
10
|
+
import winrt.windows.applicationmodel as windows_applicationmodel
|
|
11
|
+
import winrt.windows.foundation as windows_foundation
|
|
12
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
13
|
+
|
|
14
|
+
__all__ = [
|
|
15
|
+
"CatalogModelInstanceStatus",
|
|
16
|
+
"CatalogModelStatus",
|
|
17
|
+
"ExecutionProviderCertification",
|
|
18
|
+
"ExecutionProviderReadyResultState",
|
|
19
|
+
"ExecutionProviderReadyState",
|
|
20
|
+
"CatalogModelInfo",
|
|
21
|
+
"CatalogModelInstance",
|
|
22
|
+
"CatalogModelInstanceResult",
|
|
23
|
+
"ExecutionProvider",
|
|
24
|
+
"ExecutionProviderCatalog",
|
|
25
|
+
"ExecutionProviderReadyResult",
|
|
26
|
+
"ModelCatalog",
|
|
27
|
+
"ModelCatalogSource",
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
class CatalogModelInstanceStatus(enum.IntEnum):
|
|
31
|
+
AVAILABLE = 0
|
|
32
|
+
IN_PROGRESS = 1
|
|
33
|
+
UNAVAILABLE = 2
|
|
34
|
+
|
|
35
|
+
class CatalogModelStatus(enum.IntEnum):
|
|
36
|
+
READY = 0
|
|
37
|
+
NOT_READY = 1
|
|
38
|
+
|
|
39
|
+
class ExecutionProviderCertification(enum.IntEnum):
|
|
40
|
+
UNKNOWN = 0
|
|
41
|
+
CERTIFIED = 1
|
|
42
|
+
UNCERTIFIED = 2
|
|
43
|
+
|
|
44
|
+
class ExecutionProviderReadyResultState(enum.IntEnum):
|
|
45
|
+
IN_PROGRESS = 0
|
|
46
|
+
SUCCESS = 1
|
|
47
|
+
FAILURE = 2
|
|
48
|
+
|
|
49
|
+
class ExecutionProviderReadyState(enum.IntEnum):
|
|
50
|
+
READY = 0
|
|
51
|
+
NOT_READY = 1
|
|
52
|
+
NOT_PRESENT = 2
|
|
53
|
+
|
|
54
|
+
@typing.final
|
|
55
|
+
class CatalogModelInfo(winrt.system.Object):
|
|
56
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
57
|
+
"""WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
|
|
58
|
+
@typing.overload
|
|
59
|
+
# Windows.Foundation.IAsyncOperationWithProgress`2<Microsoft.Windows.AI.MachineLearning.CatalogModelInstanceResult,System.Double> Microsoft.Windows.AI.MachineLearning.CatalogModelInfo::GetInstanceAsync()
|
|
60
|
+
def get_instance_async(self) -> windows_foundation.IAsyncOperationWithProgress[CatalogModelInstanceResult, winrt.system.Double]: ...
|
|
61
|
+
@typing.overload
|
|
62
|
+
# Windows.Foundation.IAsyncOperationWithProgress`2<Microsoft.Windows.AI.MachineLearning.CatalogModelInstanceResult,System.Double> Microsoft.Windows.AI.MachineLearning.CatalogModelInfo::GetInstanceAsync(Windows.Foundation.Collections.IIterable`1<Windows.Foundation.Collections.IKeyValuePair`2<System.String,System.String>>)
|
|
63
|
+
def get_instance_async(self, additional_headers: _cabc.Mapping[str, str] | _cabc.Iterable[windows_foundation_collections.IKeyValuePair[str, str]], /) -> windows_foundation.IAsyncOperationWithProgress[CatalogModelInstanceResult, winrt.system.Double]: ...
|
|
64
|
+
# Microsoft.Windows.AI.MachineLearning.CatalogModelStatus Microsoft.Windows.AI.MachineLearning.CatalogModelInfo::GetStatus()
|
|
65
|
+
def get_status(self) -> CatalogModelStatus: ...
|
|
66
|
+
# Windows.Foundation.Collections.IVectorView`1<System.String> Microsoft.Windows.AI.MachineLearning.CatalogModelInfo::get_ExecutionProviders()
|
|
67
|
+
@_property
|
|
68
|
+
def execution_providers(self) -> _cabc.Sequence[str]: ...
|
|
69
|
+
# System.String Microsoft.Windows.AI.MachineLearning.CatalogModelInfo::get_Id()
|
|
70
|
+
@_property
|
|
71
|
+
def id(self) -> str: ...
|
|
72
|
+
# System.String Microsoft.Windows.AI.MachineLearning.CatalogModelInfo::get_License()
|
|
73
|
+
@_property
|
|
74
|
+
def license(self) -> str: ...
|
|
75
|
+
# System.String Microsoft.Windows.AI.MachineLearning.CatalogModelInfo::get_LicenseText()
|
|
76
|
+
@_property
|
|
77
|
+
def license_text(self) -> str: ...
|
|
78
|
+
# System.String Microsoft.Windows.AI.MachineLearning.CatalogModelInfo::get_LicenseUri()
|
|
79
|
+
@_property
|
|
80
|
+
def license_uri(self) -> str: ...
|
|
81
|
+
# System.UInt64 Microsoft.Windows.AI.MachineLearning.CatalogModelInfo::get_ModelSizeInBytes()
|
|
82
|
+
@_property
|
|
83
|
+
def model_size_in_bytes(self) -> winrt.system.UInt64: ...
|
|
84
|
+
# System.String Microsoft.Windows.AI.MachineLearning.CatalogModelInfo::get_Name()
|
|
85
|
+
@_property
|
|
86
|
+
def name(self) -> str: ...
|
|
87
|
+
# System.String Microsoft.Windows.AI.MachineLearning.CatalogModelInfo::get_Publisher()
|
|
88
|
+
@_property
|
|
89
|
+
def publisher(self) -> str: ...
|
|
90
|
+
# System.String Microsoft.Windows.AI.MachineLearning.CatalogModelInfo::get_SourceId()
|
|
91
|
+
@_property
|
|
92
|
+
def source_id(self) -> str: ...
|
|
93
|
+
# Windows.Foundation.Uri Microsoft.Windows.AI.MachineLearning.CatalogModelInfo::get_Uri()
|
|
94
|
+
@_property
|
|
95
|
+
def uri(self) -> windows_foundation.Uri: ...
|
|
96
|
+
# System.String Microsoft.Windows.AI.MachineLearning.CatalogModelInfo::get_Version()
|
|
97
|
+
@_property
|
|
98
|
+
def version(self) -> str: ...
|
|
99
|
+
|
|
100
|
+
@typing.final
|
|
101
|
+
class CatalogModelInstance(windows_foundation.IClosable, winrt.system.Object):
|
|
102
|
+
def __enter__(self) -> typing.Self: ...
|
|
103
|
+
def __exit__(self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: types.TracebackType | None) -> None: ...
|
|
104
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
105
|
+
"""WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
|
|
106
|
+
# System.Void Microsoft.Windows.AI.MachineLearning.CatalogModelInstance::Close()
|
|
107
|
+
def close(self) -> None: ...
|
|
108
|
+
# Microsoft.Windows.AI.MachineLearning.CatalogModelInfo Microsoft.Windows.AI.MachineLearning.CatalogModelInstance::get_ModelInfo()
|
|
109
|
+
@_property
|
|
110
|
+
def model_info(self) -> CatalogModelInfo: ...
|
|
111
|
+
# Windows.Foundation.Collections.IVectorView`1<System.String> Microsoft.Windows.AI.MachineLearning.CatalogModelInstance::get_ModelPaths()
|
|
112
|
+
@_property
|
|
113
|
+
def model_paths(self) -> _cabc.Sequence[str]: ...
|
|
114
|
+
|
|
115
|
+
@typing.final
|
|
116
|
+
class CatalogModelInstanceResult(winrt.system.Object):
|
|
117
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
118
|
+
"""WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
|
|
119
|
+
# Microsoft.Windows.AI.MachineLearning.CatalogModelInstance Microsoft.Windows.AI.MachineLearning.CatalogModelInstanceResult::GetInstance()
|
|
120
|
+
def get_instance(self) -> CatalogModelInstance: ...
|
|
121
|
+
# System.String Microsoft.Windows.AI.MachineLearning.CatalogModelInstanceResult::get_DiagnosticText()
|
|
122
|
+
@_property
|
|
123
|
+
def diagnostic_text(self) -> str: ...
|
|
124
|
+
# Windows.Foundation.HResult Microsoft.Windows.AI.MachineLearning.CatalogModelInstanceResult::get_ExtendedError()
|
|
125
|
+
@_property
|
|
126
|
+
def extended_error(self) -> windows_foundation.HResult: ...
|
|
127
|
+
# Microsoft.Windows.AI.MachineLearning.CatalogModelInstanceStatus Microsoft.Windows.AI.MachineLearning.CatalogModelInstanceResult::get_Status()
|
|
128
|
+
@_property
|
|
129
|
+
def status(self) -> CatalogModelInstanceStatus: ...
|
|
130
|
+
|
|
131
|
+
@typing.final
|
|
132
|
+
class ExecutionProvider(winrt.system.Object):
|
|
133
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
134
|
+
"""WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
|
|
135
|
+
# Windows.Foundation.IAsyncOperationWithProgress`2<Microsoft.Windows.AI.MachineLearning.ExecutionProviderReadyResult,System.Double> Microsoft.Windows.AI.MachineLearning.ExecutionProvider::EnsureReadyAsync()
|
|
136
|
+
def ensure_ready_async(self) -> windows_foundation.IAsyncOperationWithProgress[ExecutionProviderReadyResult, winrt.system.Double]: ...
|
|
137
|
+
# System.Boolean Microsoft.Windows.AI.MachineLearning.ExecutionProvider::TryRegister()
|
|
138
|
+
def try_register(self) -> bool: ...
|
|
139
|
+
# Microsoft.Windows.AI.MachineLearning.ExecutionProviderCertification Microsoft.Windows.AI.MachineLearning.ExecutionProvider::get_Certification()
|
|
140
|
+
@_property
|
|
141
|
+
def certification(self) -> ExecutionProviderCertification: ...
|
|
142
|
+
# System.String Microsoft.Windows.AI.MachineLearning.ExecutionProvider::get_LibraryPath()
|
|
143
|
+
@_property
|
|
144
|
+
def library_path(self) -> str: ...
|
|
145
|
+
# System.String Microsoft.Windows.AI.MachineLearning.ExecutionProvider::get_Name()
|
|
146
|
+
@_property
|
|
147
|
+
def name(self) -> str: ...
|
|
148
|
+
# Windows.ApplicationModel.PackageId Microsoft.Windows.AI.MachineLearning.ExecutionProvider::get_PackageId()
|
|
149
|
+
@_property
|
|
150
|
+
def package_id(self) -> windows_applicationmodel.PackageId: ...
|
|
151
|
+
# Microsoft.Windows.AI.MachineLearning.ExecutionProviderReadyState Microsoft.Windows.AI.MachineLearning.ExecutionProvider::get_ReadyState()
|
|
152
|
+
@_property
|
|
153
|
+
def ready_state(self) -> ExecutionProviderReadyState: ...
|
|
154
|
+
|
|
155
|
+
@typing.final
|
|
156
|
+
class ExecutionProviderCatalog_Static(winrt.system.Object_Static):
|
|
157
|
+
# Microsoft.Windows.AI.MachineLearning.ExecutionProviderCatalog Microsoft.Windows.AI.MachineLearning.ExecutionProviderCatalog::GetDefault()
|
|
158
|
+
def get_default(cls) -> ExecutionProviderCatalog: ...
|
|
159
|
+
|
|
160
|
+
@typing.final
|
|
161
|
+
class ExecutionProviderCatalog(winrt.system.Object, metaclass=ExecutionProviderCatalog_Static):
|
|
162
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
163
|
+
"""WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
|
|
164
|
+
# Windows.Foundation.IAsyncOperationWithProgress`2<Windows.Foundation.Collections.IVector`1<Microsoft.Windows.AI.MachineLearning.ExecutionProvider>,System.Double> Microsoft.Windows.AI.MachineLearning.ExecutionProviderCatalog::EnsureAndRegisterCertifiedAsync()
|
|
165
|
+
def ensure_and_register_certified_async(self) -> windows_foundation.IAsyncOperationWithProgress[_cabc.MutableSequence[ExecutionProvider], winrt.system.Double]: ...
|
|
166
|
+
# Microsoft.Windows.AI.MachineLearning.ExecutionProvider[] Microsoft.Windows.AI.MachineLearning.ExecutionProviderCatalog::FindAllProviders()
|
|
167
|
+
def find_all_providers(self) -> winrt.system.Array[ExecutionProvider]: ...
|
|
168
|
+
# Windows.Foundation.IAsyncOperationWithProgress`2<Windows.Foundation.Collections.IVector`1<Microsoft.Windows.AI.MachineLearning.ExecutionProvider>,System.Double> Microsoft.Windows.AI.MachineLearning.ExecutionProviderCatalog::RegisterCertifiedAsync()
|
|
169
|
+
def register_certified_async(self) -> windows_foundation.IAsyncOperationWithProgress[_cabc.MutableSequence[ExecutionProvider], winrt.system.Double]: ...
|
|
170
|
+
|
|
171
|
+
@typing.final
|
|
172
|
+
class ExecutionProviderReadyResult(winrt.system.Object):
|
|
173
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
174
|
+
"""WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
|
|
175
|
+
# System.String Microsoft.Windows.AI.MachineLearning.ExecutionProviderReadyResult::get_DiagnosticText()
|
|
176
|
+
@_property
|
|
177
|
+
def diagnostic_text(self) -> str: ...
|
|
178
|
+
# Windows.Foundation.HResult Microsoft.Windows.AI.MachineLearning.ExecutionProviderReadyResult::get_ExtendedError()
|
|
179
|
+
@_property
|
|
180
|
+
def extended_error(self) -> windows_foundation.HResult: ...
|
|
181
|
+
# Microsoft.Windows.AI.MachineLearning.ExecutionProviderReadyResultState Microsoft.Windows.AI.MachineLearning.ExecutionProviderReadyResult::get_Status()
|
|
182
|
+
@_property
|
|
183
|
+
def status(self) -> ExecutionProviderReadyResultState: ...
|
|
184
|
+
|
|
185
|
+
@typing.final
|
|
186
|
+
class ModelCatalog(winrt.system.Object):
|
|
187
|
+
def __new__(cls, sources: winrt.system.Array[ModelCatalogSource] | winrt.system.ReadableBuffer, /) -> typing.Self: ...
|
|
188
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Foundation.Collections.IVectorView`1<Microsoft.Windows.AI.MachineLearning.CatalogModelInfo>> Microsoft.Windows.AI.MachineLearning.ModelCatalog::FindAllModelsAsync()
|
|
189
|
+
def find_all_models_async(self) -> windows_foundation.IAsyncOperation[_cabc.Sequence[CatalogModelInfo]]: ...
|
|
190
|
+
# Windows.Foundation.IAsyncOperation`1<Microsoft.Windows.AI.MachineLearning.CatalogModelInfo> Microsoft.Windows.AI.MachineLearning.ModelCatalog::FindModelAsync(System.String)
|
|
191
|
+
def find_model_async(self, id_or_name: str, /) -> windows_foundation.IAsyncOperation[CatalogModelInfo]: ...
|
|
192
|
+
# Microsoft.Windows.AI.MachineLearning.CatalogModelInfo Microsoft.Windows.AI.MachineLearning.ModelCatalog::GetAvailableModel(System.String)
|
|
193
|
+
def get_available_model(self, id_or_name: str, /) -> CatalogModelInfo: ...
|
|
194
|
+
# Windows.Foundation.Collections.IVector`1<Microsoft.Windows.AI.MachineLearning.CatalogModelInfo> Microsoft.Windows.AI.MachineLearning.ModelCatalog::GetAvailableModels()
|
|
195
|
+
def get_available_models(self) -> _cabc.MutableSequence[CatalogModelInfo]: ...
|
|
196
|
+
# Windows.Foundation.Collections.IVector`1<System.String> Microsoft.Windows.AI.MachineLearning.ModelCatalog::get_ExecutionProviders()
|
|
197
|
+
@_property
|
|
198
|
+
def execution_providers(self) -> _cabc.MutableSequence[str]: ...
|
|
199
|
+
# Windows.Foundation.Collections.IVector`1<Microsoft.Windows.AI.MachineLearning.ModelCatalogSource> Microsoft.Windows.AI.MachineLearning.ModelCatalog::get_Sources()
|
|
200
|
+
@_property
|
|
201
|
+
def sources(self) -> _cabc.MutableSequence[ModelCatalogSource]: ...
|
|
202
|
+
|
|
203
|
+
@typing.final
|
|
204
|
+
class ModelCatalogSource_Static(winrt.system.Object_Static):
|
|
205
|
+
@typing.overload
|
|
206
|
+
# Windows.Foundation.IAsyncOperation`1<Microsoft.Windows.AI.MachineLearning.ModelCatalogSource> Microsoft.Windows.AI.MachineLearning.ModelCatalogSource::CreateFromUriAsync(Windows.Foundation.Uri)
|
|
207
|
+
def create_from_uri_async(cls, location: windows_foundation.Uri, /) -> windows_foundation.IAsyncOperation[ModelCatalogSource]: ...
|
|
208
|
+
@typing.overload
|
|
209
|
+
# Windows.Foundation.IAsyncOperation`1<Microsoft.Windows.AI.MachineLearning.ModelCatalogSource> Microsoft.Windows.AI.MachineLearning.ModelCatalogSource::CreateFromUriAsync(Windows.Foundation.Uri,Windows.Foundation.Collections.IIterable`1<Windows.Foundation.Collections.IKeyValuePair`2<System.String,System.String>>)
|
|
210
|
+
def create_from_uri_async(cls, location: windows_foundation.Uri, additional_headers: _cabc.Mapping[str, str] | _cabc.Iterable[windows_foundation_collections.IKeyValuePair[str, str]], /) -> windows_foundation.IAsyncOperation[ModelCatalogSource]: ...
|
|
211
|
+
|
|
212
|
+
@typing.final
|
|
213
|
+
class ModelCatalogSource(winrt.system.Object, metaclass=ModelCatalogSource_Static):
|
|
214
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
215
|
+
"""WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
|
|
216
|
+
# System.String Microsoft.Windows.AI.MachineLearning.ModelCatalogSource::get_Id()
|
|
217
|
+
@_property
|
|
218
|
+
def id(self) -> str: ...
|
|
219
|
+
# Windows.Foundation.Uri Microsoft.Windows.AI.MachineLearning.ModelCatalogSource::get_Uri()
|
|
220
|
+
@_property
|
|
221
|
+
def uri(self) -> windows_foundation.Uri: ...
|
|
222
|
+
|