winrt-Windows.AI.MachineLearning 4!10.0.28000.2705__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,61 @@
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
+ "LearningModelDeviceKind",
10
+ "LearningModelFeatureKind",
11
+ "LearningModelPixelRange",
12
+ "TensorKind",
13
+ "ImageFeatureDescriptor",
14
+ "ImageFeatureValue",
15
+ "LearningModel",
16
+ "LearningModelBinding",
17
+ "LearningModelDevice",
18
+ "LearningModelEvaluationResult",
19
+ "LearningModelSession",
20
+ "LearningModelSessionOptions",
21
+ "MapFeatureDescriptor",
22
+ "SequenceFeatureDescriptor",
23
+ "TensorBoolean",
24
+ "TensorDouble",
25
+ "TensorFeatureDescriptor",
26
+ "TensorFloat",
27
+ "TensorFloat16Bit",
28
+ "TensorInt16Bit",
29
+ "TensorInt32Bit",
30
+ "TensorInt64Bit",
31
+ "TensorInt8Bit",
32
+ "TensorString",
33
+ "TensorUInt16Bit",
34
+ "TensorUInt32Bit",
35
+ "TensorUInt64Bit",
36
+ "TensorUInt8Bit",
37
+ "ILearningModelFeatureDescriptor",
38
+ "ILearningModelFeatureValue",
39
+ "ILearningModelOperatorProvider",
40
+ "ITensor",
41
+ ]
42
+
43
+ winrt.runtime._internals.mixin_mapping(LearningModelBinding)
44
+ winrt.runtime._internals.alias_static_method(LearningModel, "load_from_file_path_with_operator_provider", "load_from_file_path")
45
+ winrt.runtime._internals.alias_static_method(LearningModel, "load_from_storage_file_with_operator_provider_async", "load_from_storage_file_async")
46
+ winrt.runtime._internals.alias_static_method(LearningModel, "load_from_stream_with_operator_provider", "load_from_stream")
47
+ winrt.runtime._internals.alias_static_method(LearningModel, "load_from_stream_with_operator_provider_async", "load_from_stream_async")
48
+ winrt.runtime._internals.alias_method(LearningModelBinding, "bind_with_properties", "bind")
49
+ winrt.runtime._internals.alias_static_method(TensorBoolean, "create2", "create")
50
+ winrt.runtime._internals.alias_static_method(TensorDouble, "create2", "create")
51
+ winrt.runtime._internals.alias_static_method(TensorFloat, "create2", "create")
52
+ winrt.runtime._internals.alias_static_method(TensorFloat16Bit, "create2", "create")
53
+ winrt.runtime._internals.alias_static_method(TensorInt16Bit, "create2", "create")
54
+ winrt.runtime._internals.alias_static_method(TensorInt32Bit, "create2", "create")
55
+ winrt.runtime._internals.alias_static_method(TensorInt64Bit, "create2", "create")
56
+ winrt.runtime._internals.alias_static_method(TensorInt8Bit, "create2", "create")
57
+ winrt.runtime._internals.alias_static_method(TensorString, "create2", "create")
58
+ winrt.runtime._internals.alias_static_method(TensorUInt16Bit, "create2", "create")
59
+ winrt.runtime._internals.alias_static_method(TensorUInt32Bit, "create2", "create")
60
+ winrt.runtime._internals.alias_static_method(TensorUInt64Bit, "create2", "create")
61
+ winrt.runtime._internals.alias_static_method(TensorUInt8Bit, "create2", "create")
@@ -0,0 +1,1026 @@
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
+ from abc import abstractmethod
9
+ from typing_extensions import deprecated
10
+
11
+ import winrt.system
12
+ import winrt.windows.foundation as windows_foundation
13
+ import winrt.windows.foundation.collections as windows_foundation_collections
14
+ import winrt.windows.graphics as windows_graphics
15
+ import winrt.windows.graphics.directx.direct3d11 as windows_graphics_directx_direct3d11
16
+ import winrt.windows.graphics.imaging as windows_graphics_imaging
17
+ import winrt.windows.media as windows_media
18
+ import winrt.windows.storage as windows_storage
19
+ import winrt.windows.storage.streams as windows_storage_streams
20
+
21
+ __all__ = [
22
+ "LearningModelDeviceKind",
23
+ "LearningModelFeatureKind",
24
+ "LearningModelPixelRange",
25
+ "TensorKind",
26
+ "ImageFeatureDescriptor",
27
+ "ImageFeatureValue",
28
+ "LearningModel",
29
+ "LearningModelBinding",
30
+ "LearningModelDevice",
31
+ "LearningModelEvaluationResult",
32
+ "LearningModelSession",
33
+ "LearningModelSessionOptions",
34
+ "MapFeatureDescriptor",
35
+ "SequenceFeatureDescriptor",
36
+ "TensorBoolean",
37
+ "TensorDouble",
38
+ "TensorFeatureDescriptor",
39
+ "TensorFloat",
40
+ "TensorFloat16Bit",
41
+ "TensorInt16Bit",
42
+ "TensorInt32Bit",
43
+ "TensorInt64Bit",
44
+ "TensorInt8Bit",
45
+ "TensorString",
46
+ "TensorUInt16Bit",
47
+ "TensorUInt32Bit",
48
+ "TensorUInt64Bit",
49
+ "TensorUInt8Bit",
50
+ "ILearningModelFeatureDescriptor",
51
+ "ILearningModelFeatureValue",
52
+ "ILearningModelOperatorProvider",
53
+ "ITensor",
54
+ ]
55
+
56
+ class LearningModelDeviceKind(enum.IntEnum):
57
+ DEFAULT = 0
58
+ CPU = 1
59
+ DIRECTX = 2
60
+ DIRECTX_HIGH_PERFORMANCE = 3
61
+ DIRECTX_MIN_POWER = 4
62
+
63
+ class LearningModelFeatureKind(enum.IntEnum):
64
+ TENSOR = 0
65
+ SEQUENCE = 1
66
+ MAP = 2
67
+ IMAGE = 3
68
+
69
+ class LearningModelPixelRange(enum.IntEnum):
70
+ ZERO_TO255 = 0
71
+ ZERO_TO_ONE = 1
72
+ MINUS_ONE_TO_ONE = 2
73
+
74
+ class TensorKind(enum.IntEnum):
75
+ UNDEFINED = 0
76
+ FLOAT = 1
77
+ UINT8 = 2
78
+ INT8 = 3
79
+ UINT16 = 4
80
+ INT16 = 5
81
+ INT32 = 6
82
+ INT64 = 7
83
+ STRING = 8
84
+ BOOLEAN = 9
85
+ FLOAT16 = 10
86
+ DOUBLE = 11
87
+ UINT32 = 12
88
+ UINT64 = 13
89
+ COMPLEX64 = 14
90
+ COMPLEX128 = 15
91
+
92
+ @typing.final
93
+ class ImageFeatureDescriptor(ILearningModelFeatureDescriptor, winrt.system.Object):
94
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
95
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
96
+ # Windows.Graphics.Imaging.BitmapAlphaMode Windows.AI.MachineLearning.ImageFeatureDescriptor::get_BitmapAlphaMode()
97
+ @_property
98
+ def bitmap_alpha_mode(self) -> windows_graphics_imaging.BitmapAlphaMode: ...
99
+ # Windows.Graphics.Imaging.BitmapPixelFormat Windows.AI.MachineLearning.ImageFeatureDescriptor::get_BitmapPixelFormat()
100
+ @_property
101
+ def bitmap_pixel_format(self) -> windows_graphics_imaging.BitmapPixelFormat: ...
102
+ # System.UInt32 Windows.AI.MachineLearning.ImageFeatureDescriptor::get_Height()
103
+ @_property
104
+ def height(self) -> winrt.system.UInt32: ...
105
+ # System.UInt32 Windows.AI.MachineLearning.ImageFeatureDescriptor::get_Width()
106
+ @_property
107
+ def width(self) -> winrt.system.UInt32: ...
108
+ # Windows.AI.MachineLearning.LearningModelPixelRange Windows.AI.MachineLearning.ImageFeatureDescriptor::get_PixelRange()
109
+ @_property
110
+ def pixel_range(self) -> LearningModelPixelRange: ...
111
+ # System.String Windows.AI.MachineLearning.ImageFeatureDescriptor::get_Description()
112
+ @_property
113
+ def description(self) -> str: ...
114
+ # System.Boolean Windows.AI.MachineLearning.ImageFeatureDescriptor::get_IsRequired()
115
+ @_property
116
+ def is_required(self) -> bool: ...
117
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.ImageFeatureDescriptor::get_Kind()
118
+ @_property
119
+ def kind(self) -> LearningModelFeatureKind: ...
120
+ # System.String Windows.AI.MachineLearning.ImageFeatureDescriptor::get_Name()
121
+ @_property
122
+ def name(self) -> str: ...
123
+
124
+ @typing.final
125
+ class ImageFeatureValue_Static(winrt.system.Object_Static):
126
+ # Windows.AI.MachineLearning.ImageFeatureValue Windows.AI.MachineLearning.ImageFeatureValue::CreateFromVideoFrame(Windows.Media.VideoFrame)
127
+ def create_from_video_frame(cls, image: windows_media.VideoFrame, /) -> ImageFeatureValue: ...
128
+
129
+ @typing.final
130
+ class ImageFeatureValue(ILearningModelFeatureValue, winrt.system.Object, metaclass=ImageFeatureValue_Static):
131
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
132
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
133
+ # Windows.Media.VideoFrame Windows.AI.MachineLearning.ImageFeatureValue::get_VideoFrame()
134
+ @_property
135
+ def video_frame(self) -> windows_media.VideoFrame: ...
136
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.ImageFeatureValue::get_Kind()
137
+ @_property
138
+ def kind(self) -> LearningModelFeatureKind: ...
139
+
140
+ @typing.final
141
+ class LearningModel_Static(winrt.system.Object_Static):
142
+ @typing.overload
143
+ # Windows.AI.MachineLearning.LearningModel Windows.AI.MachineLearning.LearningModel::LoadFromFilePath(System.String)
144
+ def load_from_file_path(cls, file_path: str, /) -> LearningModel: ...
145
+ @typing.overload
146
+ # Windows.AI.MachineLearning.LearningModel Windows.AI.MachineLearning.LearningModel::LoadFromFilePath(System.String,Windows.AI.MachineLearning.ILearningModelOperatorProvider)
147
+ def load_from_file_path(cls, file_path: str, operator_provider: ILearningModelOperatorProvider, /) -> LearningModel: ...
148
+ # Deprecated alias of load_from_file_path() for pywinrt v3.x compatibility.
149
+ # Windows.AI.MachineLearning.LearningModel Windows.AI.MachineLearning.LearningModel::LoadFromFilePath(System.String,Windows.AI.MachineLearning.ILearningModelOperatorProvider)
150
+ @deprecated("Use load_from_file_path() instead.")
151
+ def load_from_file_path_with_operator_provider(cls, file_path: str, operator_provider: ILearningModelOperatorProvider, /) -> LearningModel: ...
152
+ @typing.overload
153
+ # Windows.Foundation.IAsyncOperation`1<Windows.AI.MachineLearning.LearningModel> Windows.AI.MachineLearning.LearningModel::LoadFromStorageFileAsync(Windows.Storage.IStorageFile)
154
+ def load_from_storage_file_async(cls, model_file: windows_storage.IStorageFile, /) -> windows_foundation.IAsyncOperation[LearningModel]: ...
155
+ @typing.overload
156
+ # Windows.Foundation.IAsyncOperation`1<Windows.AI.MachineLearning.LearningModel> Windows.AI.MachineLearning.LearningModel::LoadFromStorageFileAsync(Windows.Storage.IStorageFile,Windows.AI.MachineLearning.ILearningModelOperatorProvider)
157
+ def load_from_storage_file_async(cls, model_file: windows_storage.IStorageFile, operator_provider: ILearningModelOperatorProvider, /) -> windows_foundation.IAsyncOperation[LearningModel]: ...
158
+ # Deprecated alias of load_from_storage_file_async() for pywinrt v3.x compatibility.
159
+ # Windows.Foundation.IAsyncOperation`1<Windows.AI.MachineLearning.LearningModel> Windows.AI.MachineLearning.LearningModel::LoadFromStorageFileAsync(Windows.Storage.IStorageFile,Windows.AI.MachineLearning.ILearningModelOperatorProvider)
160
+ @deprecated("Use load_from_storage_file_async() instead.")
161
+ def load_from_storage_file_with_operator_provider_async(cls, model_file: windows_storage.IStorageFile, operator_provider: ILearningModelOperatorProvider, /) -> windows_foundation.IAsyncOperation[LearningModel]: ...
162
+ @typing.overload
163
+ # Windows.AI.MachineLearning.LearningModel Windows.AI.MachineLearning.LearningModel::LoadFromStream(Windows.Storage.Streams.IRandomAccessStreamReference)
164
+ def load_from_stream(cls, model_stream: windows_storage_streams.IRandomAccessStreamReference, /) -> LearningModel: ...
165
+ @typing.overload
166
+ # Windows.AI.MachineLearning.LearningModel Windows.AI.MachineLearning.LearningModel::LoadFromStream(Windows.Storage.Streams.IRandomAccessStreamReference,Windows.AI.MachineLearning.ILearningModelOperatorProvider)
167
+ def load_from_stream(cls, model_stream: windows_storage_streams.IRandomAccessStreamReference, operator_provider: ILearningModelOperatorProvider, /) -> LearningModel: ...
168
+ # Deprecated alias of load_from_stream() for pywinrt v3.x compatibility.
169
+ # Windows.AI.MachineLearning.LearningModel Windows.AI.MachineLearning.LearningModel::LoadFromStream(Windows.Storage.Streams.IRandomAccessStreamReference,Windows.AI.MachineLearning.ILearningModelOperatorProvider)
170
+ @deprecated("Use load_from_stream() instead.")
171
+ def load_from_stream_with_operator_provider(cls, model_stream: windows_storage_streams.IRandomAccessStreamReference, operator_provider: ILearningModelOperatorProvider, /) -> LearningModel: ...
172
+ @typing.overload
173
+ # Windows.Foundation.IAsyncOperation`1<Windows.AI.MachineLearning.LearningModel> Windows.AI.MachineLearning.LearningModel::LoadFromStreamAsync(Windows.Storage.Streams.IRandomAccessStreamReference)
174
+ def load_from_stream_async(cls, model_stream: windows_storage_streams.IRandomAccessStreamReference, /) -> windows_foundation.IAsyncOperation[LearningModel]: ...
175
+ @typing.overload
176
+ # Windows.Foundation.IAsyncOperation`1<Windows.AI.MachineLearning.LearningModel> Windows.AI.MachineLearning.LearningModel::LoadFromStreamAsync(Windows.Storage.Streams.IRandomAccessStreamReference,Windows.AI.MachineLearning.ILearningModelOperatorProvider)
177
+ def load_from_stream_async(cls, model_stream: windows_storage_streams.IRandomAccessStreamReference, operator_provider: ILearningModelOperatorProvider, /) -> windows_foundation.IAsyncOperation[LearningModel]: ...
178
+ # Deprecated alias of load_from_stream_async() for pywinrt v3.x compatibility.
179
+ # Windows.Foundation.IAsyncOperation`1<Windows.AI.MachineLearning.LearningModel> Windows.AI.MachineLearning.LearningModel::LoadFromStreamAsync(Windows.Storage.Streams.IRandomAccessStreamReference,Windows.AI.MachineLearning.ILearningModelOperatorProvider)
180
+ @deprecated("Use load_from_stream_async() instead.")
181
+ def load_from_stream_with_operator_provider_async(cls, model_stream: windows_storage_streams.IRandomAccessStreamReference, operator_provider: ILearningModelOperatorProvider, /) -> windows_foundation.IAsyncOperation[LearningModel]: ...
182
+
183
+ @typing.final
184
+ class LearningModel(windows_foundation.IClosable, winrt.system.Object, metaclass=LearningModel_Static):
185
+ def __enter__(self) -> typing.Self: ...
186
+ def __exit__(self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: types.TracebackType | None) -> None: ...
187
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
188
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
189
+ # System.Void Windows.AI.MachineLearning.LearningModel::Close()
190
+ def close(self) -> None: ...
191
+ # System.String Windows.AI.MachineLearning.LearningModel::get_Author()
192
+ @_property
193
+ def author(self) -> str: ...
194
+ # System.String Windows.AI.MachineLearning.LearningModel::get_Description()
195
+ @_property
196
+ def description(self) -> str: ...
197
+ # System.String Windows.AI.MachineLearning.LearningModel::get_Domain()
198
+ @_property
199
+ def domain(self) -> str: ...
200
+ # Windows.Foundation.Collections.IVectorView`1<Windows.AI.MachineLearning.ILearningModelFeatureDescriptor> Windows.AI.MachineLearning.LearningModel::get_InputFeatures()
201
+ @_property
202
+ def input_features(self) -> _cabc.Sequence[ILearningModelFeatureDescriptor]: ...
203
+ # Windows.Foundation.Collections.IMapView`2<System.String,System.String> Windows.AI.MachineLearning.LearningModel::get_Metadata()
204
+ @_property
205
+ def metadata(self) -> _cabc.Mapping[str, str]: ...
206
+ # System.String Windows.AI.MachineLearning.LearningModel::get_Name()
207
+ @_property
208
+ def name(self) -> str: ...
209
+ # Windows.Foundation.Collections.IVectorView`1<Windows.AI.MachineLearning.ILearningModelFeatureDescriptor> Windows.AI.MachineLearning.LearningModel::get_OutputFeatures()
210
+ @_property
211
+ def output_features(self) -> _cabc.Sequence[ILearningModelFeatureDescriptor]: ...
212
+ # System.Int64 Windows.AI.MachineLearning.LearningModel::get_Version()
213
+ @_property
214
+ def version(self) -> winrt.system.Int64: ...
215
+
216
+ @typing.final
217
+ class LearningModelBinding(_cabc.Mapping[str, winrt.system.Object], winrt.system.Object):
218
+ __hash__: typing.ClassVar[None] # type: ignore[assignment]
219
+ def __len__(self) -> int: ...
220
+ def __iter__(self) -> _cabc.Iterator[str]: ...
221
+ def __contains__(self, key: object) -> bool: ...
222
+ def __getitem__(self, key: str) -> winrt.system.Object: ...
223
+ def __new__(cls, session: LearningModelSession, /) -> typing.Self: ...
224
+ @typing.overload
225
+ # System.Void Windows.AI.MachineLearning.LearningModelBinding::Bind(System.String,System.Object)
226
+ def bind(self, name: str, value: winrt.system.Object, /) -> None: ...
227
+ @typing.overload
228
+ # System.Void Windows.AI.MachineLearning.LearningModelBinding::Bind(System.String,System.Object,Windows.Foundation.Collections.IPropertySet)
229
+ def bind(self, name: str, value: winrt.system.Object, props: windows_foundation_collections.IPropertySet, /) -> None: ...
230
+ # Deprecated alias of bind() for pywinrt v3.x compatibility.
231
+ # System.Void Windows.AI.MachineLearning.LearningModelBinding::Bind(System.String,System.Object,Windows.Foundation.Collections.IPropertySet)
232
+ @deprecated("Use bind() instead.")
233
+ def bind_with_properties(self, name: str, value: winrt.system.Object, props: windows_foundation_collections.IPropertySet, /) -> None: ...
234
+ # System.Void Windows.AI.MachineLearning.LearningModelBinding::Clear()
235
+ def clear(self) -> None: ...
236
+ # Windows.Foundation.Collections.IIterator`1<Windows.Foundation.Collections.IKeyValuePair`2<System.String,System.Object>> Windows.AI.MachineLearning.LearningModelBinding::First()
237
+ def first(self) -> windows_foundation_collections.IIterator[windows_foundation_collections.IKeyValuePair[str, winrt.system.Object]]: ...
238
+ # System.Boolean Windows.AI.MachineLearning.LearningModelBinding::HasKey(System.String)
239
+ def has_key(self, key: str, /) -> bool: ...
240
+ # System.Object Windows.AI.MachineLearning.LearningModelBinding::Lookup(System.String)
241
+ def lookup(self, key: str, /) -> winrt.system.Object: ...
242
+ # System.Void Windows.AI.MachineLearning.LearningModelBinding::Split(Windows.Foundation.Collections.IMapView`2<System.String,System.Object>&,Windows.Foundation.Collections.IMapView`2<System.String,System.Object>&)
243
+ def split(self) -> tuple[_cabc.Mapping[str, winrt.system.Object], _cabc.Mapping[str, winrt.system.Object]]: ...
244
+ # System.UInt32 Windows.AI.MachineLearning.LearningModelBinding::get_Size()
245
+ @_property
246
+ def size(self) -> winrt.system.UInt32: ...
247
+
248
+ @typing.final
249
+ class LearningModelDevice_Static(winrt.system.Object_Static):
250
+ # Windows.AI.MachineLearning.LearningModelDevice Windows.AI.MachineLearning.LearningModelDevice::CreateFromDirect3D11Device(Windows.Graphics.DirectX.Direct3D11.IDirect3DDevice)
251
+ def create_from_direct3d11_device(cls, device: windows_graphics_directx_direct3d11.IDirect3DDevice, /) -> LearningModelDevice: ...
252
+
253
+ @typing.final
254
+ class LearningModelDevice(winrt.system.Object, metaclass=LearningModelDevice_Static):
255
+ def __new__(cls, device_kind: LearningModelDeviceKind, /) -> typing.Self: ...
256
+ # Windows.Graphics.DisplayAdapterId Windows.AI.MachineLearning.LearningModelDevice::get_AdapterId()
257
+ @_property
258
+ def adapter_id(self) -> windows_graphics.DisplayAdapterId: ...
259
+ # Windows.Graphics.DirectX.Direct3D11.IDirect3DDevice Windows.AI.MachineLearning.LearningModelDevice::get_Direct3D11Device()
260
+ @_property
261
+ def direct3d11_device(self) -> windows_graphics_directx_direct3d11.IDirect3DDevice: ...
262
+
263
+ @typing.final
264
+ class LearningModelEvaluationResult(winrt.system.Object):
265
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
266
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
267
+ # System.String Windows.AI.MachineLearning.LearningModelEvaluationResult::get_CorrelationId()
268
+ @_property
269
+ def correlation_id(self) -> str: ...
270
+ # System.Int32 Windows.AI.MachineLearning.LearningModelEvaluationResult::get_ErrorStatus()
271
+ @_property
272
+ def error_status(self) -> winrt.system.Int32: ...
273
+ # Windows.Foundation.Collections.IMapView`2<System.String,System.Object> Windows.AI.MachineLearning.LearningModelEvaluationResult::get_Outputs()
274
+ @_property
275
+ def outputs(self) -> _cabc.Mapping[str, winrt.system.Object]: ...
276
+ # System.Boolean Windows.AI.MachineLearning.LearningModelEvaluationResult::get_Succeeded()
277
+ @_property
278
+ def succeeded(self) -> bool: ...
279
+
280
+ @typing.final
281
+ class LearningModelSession(windows_foundation.IClosable, winrt.system.Object):
282
+ def __enter__(self) -> typing.Self: ...
283
+ def __exit__(self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: types.TracebackType | None) -> None: ...
284
+ @typing.overload
285
+ def __new__(cls, model: LearningModel, device_to_run_on: LearningModelDevice, learning_model_session_options: LearningModelSessionOptions, /) -> typing.Self: ...
286
+ @typing.overload
287
+ def __new__(cls, model: LearningModel, /) -> typing.Self: ...
288
+ @typing.overload
289
+ def __new__(cls, model: LearningModel, device_to_run_on: LearningModelDevice, /) -> typing.Self: ...
290
+ # System.Void Windows.AI.MachineLearning.LearningModelSession::Close()
291
+ def close(self) -> None: ...
292
+ # Windows.AI.MachineLearning.LearningModelEvaluationResult Windows.AI.MachineLearning.LearningModelSession::Evaluate(Windows.AI.MachineLearning.LearningModelBinding,System.String)
293
+ def evaluate(self, bindings: LearningModelBinding, correlation_id: str, /) -> LearningModelEvaluationResult: ...
294
+ # Windows.Foundation.IAsyncOperation`1<Windows.AI.MachineLearning.LearningModelEvaluationResult> Windows.AI.MachineLearning.LearningModelSession::EvaluateAsync(Windows.AI.MachineLearning.LearningModelBinding,System.String)
295
+ def evaluate_async(self, bindings: LearningModelBinding, correlation_id: str, /) -> windows_foundation.IAsyncOperation[LearningModelEvaluationResult]: ...
296
+ # Windows.AI.MachineLearning.LearningModelEvaluationResult Windows.AI.MachineLearning.LearningModelSession::EvaluateFeatures(Windows.Foundation.Collections.IMap`2<System.String,System.Object>,System.String)
297
+ def evaluate_features(self, features: _cabc.MutableMapping[str, winrt.system.Object], correlation_id: str, /) -> LearningModelEvaluationResult: ...
298
+ # Windows.Foundation.IAsyncOperation`1<Windows.AI.MachineLearning.LearningModelEvaluationResult> Windows.AI.MachineLearning.LearningModelSession::EvaluateFeaturesAsync(Windows.Foundation.Collections.IMap`2<System.String,System.Object>,System.String)
299
+ def evaluate_features_async(self, features: _cabc.MutableMapping[str, winrt.system.Object], correlation_id: str, /) -> windows_foundation.IAsyncOperation[LearningModelEvaluationResult]: ...
300
+ # Windows.AI.MachineLearning.LearningModelDevice Windows.AI.MachineLearning.LearningModelSession::get_Device()
301
+ @_property
302
+ def device(self) -> LearningModelDevice: ...
303
+ # Windows.Foundation.Collections.IPropertySet Windows.AI.MachineLearning.LearningModelSession::get_EvaluationProperties()
304
+ @_property
305
+ def evaluation_properties(self) -> windows_foundation_collections.IPropertySet: ...
306
+ # Windows.AI.MachineLearning.LearningModel Windows.AI.MachineLearning.LearningModelSession::get_Model()
307
+ @_property
308
+ def model(self) -> LearningModel: ...
309
+
310
+ @typing.final
311
+ class LearningModelSessionOptions(winrt.system.Object):
312
+ def __new__(cls) -> typing.Self: ...
313
+ # System.Void Windows.AI.MachineLearning.LearningModelSessionOptions::OverrideNamedDimension(System.String,System.UInt32)
314
+ def override_named_dimension(self, name: str, dimension: winrt.system.UInt32 | typing.SupportsIndex, /) -> None: ...
315
+ # System.UInt32 Windows.AI.MachineLearning.LearningModelSessionOptions::get_BatchSizeOverride()
316
+ @_property
317
+ def batch_size_override(self) -> winrt.system.UInt32: ...
318
+ # System.Void Windows.AI.MachineLearning.LearningModelSessionOptions::put_BatchSizeOverride(System.UInt32)
319
+ @batch_size_override.setter
320
+ def batch_size_override(self, value: winrt.system.UInt32 | typing.SupportsIndex) -> None: ...
321
+ # System.Boolean Windows.AI.MachineLearning.LearningModelSessionOptions::get_CloseModelOnSessionCreation()
322
+ @_property
323
+ def close_model_on_session_creation(self) -> bool: ...
324
+ # System.Void Windows.AI.MachineLearning.LearningModelSessionOptions::put_CloseModelOnSessionCreation(System.Boolean)
325
+ @close_model_on_session_creation.setter
326
+ def close_model_on_session_creation(self, value: bool) -> None: ...
327
+
328
+ @typing.final
329
+ class MapFeatureDescriptor(ILearningModelFeatureDescriptor, winrt.system.Object):
330
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
331
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
332
+ # System.String Windows.AI.MachineLearning.MapFeatureDescriptor::get_Description()
333
+ @_property
334
+ def description(self) -> str: ...
335
+ # System.Boolean Windows.AI.MachineLearning.MapFeatureDescriptor::get_IsRequired()
336
+ @_property
337
+ def is_required(self) -> bool: ...
338
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.MapFeatureDescriptor::get_Kind()
339
+ @_property
340
+ def kind(self) -> LearningModelFeatureKind: ...
341
+ # System.String Windows.AI.MachineLearning.MapFeatureDescriptor::get_Name()
342
+ @_property
343
+ def name(self) -> str: ...
344
+ # Windows.AI.MachineLearning.TensorKind Windows.AI.MachineLearning.MapFeatureDescriptor::get_KeyKind()
345
+ @_property
346
+ def key_kind(self) -> TensorKind: ...
347
+ # Windows.AI.MachineLearning.ILearningModelFeatureDescriptor Windows.AI.MachineLearning.MapFeatureDescriptor::get_ValueDescriptor()
348
+ @_property
349
+ def value_descriptor(self) -> ILearningModelFeatureDescriptor: ...
350
+
351
+ @typing.final
352
+ class SequenceFeatureDescriptor(ILearningModelFeatureDescriptor, winrt.system.Object):
353
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
354
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
355
+ # System.String Windows.AI.MachineLearning.SequenceFeatureDescriptor::get_Description()
356
+ @_property
357
+ def description(self) -> str: ...
358
+ # System.Boolean Windows.AI.MachineLearning.SequenceFeatureDescriptor::get_IsRequired()
359
+ @_property
360
+ def is_required(self) -> bool: ...
361
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.SequenceFeatureDescriptor::get_Kind()
362
+ @_property
363
+ def kind(self) -> LearningModelFeatureKind: ...
364
+ # System.String Windows.AI.MachineLearning.SequenceFeatureDescriptor::get_Name()
365
+ @_property
366
+ def name(self) -> str: ...
367
+ # Windows.AI.MachineLearning.ILearningModelFeatureDescriptor Windows.AI.MachineLearning.SequenceFeatureDescriptor::get_ElementDescriptor()
368
+ @_property
369
+ def element_descriptor(self) -> ILearningModelFeatureDescriptor: ...
370
+
371
+ @typing.final
372
+ class TensorBoolean_Static(winrt.system.Object_Static):
373
+ @typing.overload
374
+ # Windows.AI.MachineLearning.TensorBoolean Windows.AI.MachineLearning.TensorBoolean::Create()
375
+ def create(cls) -> TensorBoolean: ...
376
+ @typing.overload
377
+ # Windows.AI.MachineLearning.TensorBoolean Windows.AI.MachineLearning.TensorBoolean::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
378
+ def create(cls, shape: _cabc.Iterable[winrt.system.Int64], /) -> TensorBoolean: ...
379
+ # Deprecated alias of create() for pywinrt v3.x compatibility.
380
+ # Windows.AI.MachineLearning.TensorBoolean Windows.AI.MachineLearning.TensorBoolean::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
381
+ @deprecated("Use create() instead.")
382
+ def create2(cls, shape: _cabc.Iterable[winrt.system.Int64], /) -> TensorBoolean: ...
383
+ # Windows.AI.MachineLearning.TensorBoolean Windows.AI.MachineLearning.TensorBoolean::CreateFromArray(Windows.Foundation.Collections.IIterable`1<System.Int64>,System.Boolean[])
384
+ def create_from_array(cls, shape: _cabc.Iterable[winrt.system.Int64], data: winrt.system.Array[bool] | winrt.system.ReadableBuffer, /) -> TensorBoolean: ...
385
+ # Windows.AI.MachineLearning.TensorBoolean Windows.AI.MachineLearning.TensorBoolean::CreateFromBuffer(System.Int64[],Windows.Storage.Streams.IBuffer)
386
+ def create_from_buffer(cls, shape: winrt.system.Array[winrt.system.Int64] | winrt.system.ReadableBuffer, buffer: winrt.system.ReadableBuffer, /) -> TensorBoolean: ...
387
+ # Windows.AI.MachineLearning.TensorBoolean Windows.AI.MachineLearning.TensorBoolean::CreateFromIterable(Windows.Foundation.Collections.IIterable`1<System.Int64>,Windows.Foundation.Collections.IIterable`1<System.Boolean>)
388
+ def create_from_iterable(cls, shape: _cabc.Iterable[winrt.system.Int64], data: _cabc.Iterable[bool], /) -> TensorBoolean: ...
389
+ # Windows.AI.MachineLearning.TensorBoolean Windows.AI.MachineLearning.TensorBoolean::CreateFromShapeArrayAndDataArray(System.Int64[],System.Boolean[])
390
+ def create_from_shape_array_and_data_array(cls, shape: winrt.system.Array[winrt.system.Int64] | winrt.system.ReadableBuffer, data: winrt.system.Array[bool] | winrt.system.ReadableBuffer, /) -> TensorBoolean: ...
391
+
392
+ @typing.final
393
+ class TensorBoolean(windows_foundation.IMemoryBuffer, windows_foundation.IClosable, ITensor, ILearningModelFeatureValue, winrt.system.Object, metaclass=TensorBoolean_Static):
394
+ def __enter__(self) -> typing.Self: ...
395
+ def __exit__(self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: types.TracebackType | None) -> None: ...
396
+ def __buffer__(self, flags: int, /) -> memoryview: ...
397
+ def __release_buffer__(self, view: memoryview, /) -> None: ...
398
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
399
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
400
+ # System.Void Windows.AI.MachineLearning.TensorBoolean::Close()
401
+ def close(self) -> None: ...
402
+ # Windows.Foundation.IMemoryBufferReference Windows.AI.MachineLearning.TensorBoolean::CreateReference()
403
+ @deprecated("Use the IMemoryBuffer itself as a buffer instead, e.g. with memoryview().")
404
+ def create_reference(self) -> windows_foundation.IMemoryBufferReference: ...
405
+ # Windows.Foundation.Collections.IVectorView`1<System.Boolean> Windows.AI.MachineLearning.TensorBoolean::GetAsVectorView()
406
+ def get_as_vector_view(self) -> _cabc.Sequence[bool]: ...
407
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.TensorBoolean::get_Kind()
408
+ @_property
409
+ def kind(self) -> LearningModelFeatureKind: ...
410
+ # Windows.Foundation.Collections.IVectorView`1<System.Int64> Windows.AI.MachineLearning.TensorBoolean::get_Shape()
411
+ @_property
412
+ def shape(self) -> _cabc.Sequence[winrt.system.Int64]: ...
413
+ # Windows.AI.MachineLearning.TensorKind Windows.AI.MachineLearning.TensorBoolean::get_TensorKind()
414
+ @_property
415
+ def tensor_kind(self) -> TensorKind: ...
416
+
417
+ @typing.final
418
+ class TensorDouble_Static(winrt.system.Object_Static):
419
+ @typing.overload
420
+ # Windows.AI.MachineLearning.TensorDouble Windows.AI.MachineLearning.TensorDouble::Create()
421
+ def create(cls) -> TensorDouble: ...
422
+ @typing.overload
423
+ # Windows.AI.MachineLearning.TensorDouble Windows.AI.MachineLearning.TensorDouble::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
424
+ def create(cls, shape: _cabc.Iterable[winrt.system.Int64], /) -> TensorDouble: ...
425
+ # Deprecated alias of create() for pywinrt v3.x compatibility.
426
+ # Windows.AI.MachineLearning.TensorDouble Windows.AI.MachineLearning.TensorDouble::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
427
+ @deprecated("Use create() instead.")
428
+ def create2(cls, shape: _cabc.Iterable[winrt.system.Int64], /) -> TensorDouble: ...
429
+ # Windows.AI.MachineLearning.TensorDouble Windows.AI.MachineLearning.TensorDouble::CreateFromArray(Windows.Foundation.Collections.IIterable`1<System.Int64>,System.Double[])
430
+ def create_from_array(cls, shape: _cabc.Iterable[winrt.system.Int64], data: winrt.system.Array[winrt.system.Double] | winrt.system.ReadableBuffer, /) -> TensorDouble: ...
431
+ # Windows.AI.MachineLearning.TensorDouble Windows.AI.MachineLearning.TensorDouble::CreateFromBuffer(System.Int64[],Windows.Storage.Streams.IBuffer)
432
+ def create_from_buffer(cls, shape: winrt.system.Array[winrt.system.Int64] | winrt.system.ReadableBuffer, buffer: winrt.system.ReadableBuffer, /) -> TensorDouble: ...
433
+ # Windows.AI.MachineLearning.TensorDouble Windows.AI.MachineLearning.TensorDouble::CreateFromIterable(Windows.Foundation.Collections.IIterable`1<System.Int64>,Windows.Foundation.Collections.IIterable`1<System.Double>)
434
+ def create_from_iterable(cls, shape: _cabc.Iterable[winrt.system.Int64], data: _cabc.Iterable[winrt.system.Double], /) -> TensorDouble: ...
435
+ # Windows.AI.MachineLearning.TensorDouble Windows.AI.MachineLearning.TensorDouble::CreateFromShapeArrayAndDataArray(System.Int64[],System.Double[])
436
+ def create_from_shape_array_and_data_array(cls, shape: winrt.system.Array[winrt.system.Int64] | winrt.system.ReadableBuffer, data: winrt.system.Array[winrt.system.Double] | winrt.system.ReadableBuffer, /) -> TensorDouble: ...
437
+
438
+ @typing.final
439
+ class TensorDouble(windows_foundation.IMemoryBuffer, windows_foundation.IClosable, ITensor, ILearningModelFeatureValue, winrt.system.Object, metaclass=TensorDouble_Static):
440
+ def __enter__(self) -> typing.Self: ...
441
+ def __exit__(self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: types.TracebackType | None) -> None: ...
442
+ def __buffer__(self, flags: int, /) -> memoryview: ...
443
+ def __release_buffer__(self, view: memoryview, /) -> None: ...
444
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
445
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
446
+ # System.Void Windows.AI.MachineLearning.TensorDouble::Close()
447
+ def close(self) -> None: ...
448
+ # Windows.Foundation.IMemoryBufferReference Windows.AI.MachineLearning.TensorDouble::CreateReference()
449
+ @deprecated("Use the IMemoryBuffer itself as a buffer instead, e.g. with memoryview().")
450
+ def create_reference(self) -> windows_foundation.IMemoryBufferReference: ...
451
+ # Windows.Foundation.Collections.IVectorView`1<System.Double> Windows.AI.MachineLearning.TensorDouble::GetAsVectorView()
452
+ def get_as_vector_view(self) -> _cabc.Sequence[winrt.system.Double]: ...
453
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.TensorDouble::get_Kind()
454
+ @_property
455
+ def kind(self) -> LearningModelFeatureKind: ...
456
+ # Windows.Foundation.Collections.IVectorView`1<System.Int64> Windows.AI.MachineLearning.TensorDouble::get_Shape()
457
+ @_property
458
+ def shape(self) -> _cabc.Sequence[winrt.system.Int64]: ...
459
+ # Windows.AI.MachineLearning.TensorKind Windows.AI.MachineLearning.TensorDouble::get_TensorKind()
460
+ @_property
461
+ def tensor_kind(self) -> TensorKind: ...
462
+
463
+ @typing.final
464
+ class TensorFeatureDescriptor(ILearningModelFeatureDescriptor, winrt.system.Object):
465
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
466
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
467
+ # System.String Windows.AI.MachineLearning.TensorFeatureDescriptor::get_Description()
468
+ @_property
469
+ def description(self) -> str: ...
470
+ # System.Boolean Windows.AI.MachineLearning.TensorFeatureDescriptor::get_IsRequired()
471
+ @_property
472
+ def is_required(self) -> bool: ...
473
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.TensorFeatureDescriptor::get_Kind()
474
+ @_property
475
+ def kind(self) -> LearningModelFeatureKind: ...
476
+ # System.String Windows.AI.MachineLearning.TensorFeatureDescriptor::get_Name()
477
+ @_property
478
+ def name(self) -> str: ...
479
+ # Windows.Foundation.Collections.IVectorView`1<System.Int64> Windows.AI.MachineLearning.TensorFeatureDescriptor::get_Shape()
480
+ @_property
481
+ def shape(self) -> _cabc.Sequence[winrt.system.Int64]: ...
482
+ # Windows.AI.MachineLearning.TensorKind Windows.AI.MachineLearning.TensorFeatureDescriptor::get_TensorKind()
483
+ @_property
484
+ def tensor_kind(self) -> TensorKind: ...
485
+
486
+ @typing.final
487
+ class TensorFloat_Static(winrt.system.Object_Static):
488
+ @typing.overload
489
+ # Windows.AI.MachineLearning.TensorFloat Windows.AI.MachineLearning.TensorFloat::Create()
490
+ def create(cls) -> TensorFloat: ...
491
+ @typing.overload
492
+ # Windows.AI.MachineLearning.TensorFloat Windows.AI.MachineLearning.TensorFloat::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
493
+ def create(cls, shape: _cabc.Iterable[winrt.system.Int64], /) -> TensorFloat: ...
494
+ # Deprecated alias of create() for pywinrt v3.x compatibility.
495
+ # Windows.AI.MachineLearning.TensorFloat Windows.AI.MachineLearning.TensorFloat::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
496
+ @deprecated("Use create() instead.")
497
+ def create2(cls, shape: _cabc.Iterable[winrt.system.Int64], /) -> TensorFloat: ...
498
+ # Windows.AI.MachineLearning.TensorFloat Windows.AI.MachineLearning.TensorFloat::CreateFromArray(Windows.Foundation.Collections.IIterable`1<System.Int64>,System.Single[])
499
+ def create_from_array(cls, shape: _cabc.Iterable[winrt.system.Int64], data: winrt.system.Array[winrt.system.Single] | winrt.system.ReadableBuffer, /) -> TensorFloat: ...
500
+ # Windows.AI.MachineLearning.TensorFloat Windows.AI.MachineLearning.TensorFloat::CreateFromBuffer(System.Int64[],Windows.Storage.Streams.IBuffer)
501
+ def create_from_buffer(cls, shape: winrt.system.Array[winrt.system.Int64] | winrt.system.ReadableBuffer, buffer: winrt.system.ReadableBuffer, /) -> TensorFloat: ...
502
+ # Windows.AI.MachineLearning.TensorFloat Windows.AI.MachineLearning.TensorFloat::CreateFromIterable(Windows.Foundation.Collections.IIterable`1<System.Int64>,Windows.Foundation.Collections.IIterable`1<System.Single>)
503
+ def create_from_iterable(cls, shape: _cabc.Iterable[winrt.system.Int64], data: _cabc.Iterable[winrt.system.Single], /) -> TensorFloat: ...
504
+ # Windows.AI.MachineLearning.TensorFloat Windows.AI.MachineLearning.TensorFloat::CreateFromShapeArrayAndDataArray(System.Int64[],System.Single[])
505
+ def create_from_shape_array_and_data_array(cls, shape: winrt.system.Array[winrt.system.Int64] | winrt.system.ReadableBuffer, data: winrt.system.Array[winrt.system.Single] | winrt.system.ReadableBuffer, /) -> TensorFloat: ...
506
+
507
+ @typing.final
508
+ class TensorFloat(windows_foundation.IMemoryBuffer, windows_foundation.IClosable, ITensor, ILearningModelFeatureValue, winrt.system.Object, metaclass=TensorFloat_Static):
509
+ def __enter__(self) -> typing.Self: ...
510
+ def __exit__(self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: types.TracebackType | None) -> None: ...
511
+ def __buffer__(self, flags: int, /) -> memoryview: ...
512
+ def __release_buffer__(self, view: memoryview, /) -> None: ...
513
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
514
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
515
+ # System.Void Windows.AI.MachineLearning.TensorFloat::Close()
516
+ def close(self) -> None: ...
517
+ # Windows.Foundation.IMemoryBufferReference Windows.AI.MachineLearning.TensorFloat::CreateReference()
518
+ @deprecated("Use the IMemoryBuffer itself as a buffer instead, e.g. with memoryview().")
519
+ def create_reference(self) -> windows_foundation.IMemoryBufferReference: ...
520
+ # Windows.Foundation.Collections.IVectorView`1<System.Single> Windows.AI.MachineLearning.TensorFloat::GetAsVectorView()
521
+ def get_as_vector_view(self) -> _cabc.Sequence[winrt.system.Single]: ...
522
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.TensorFloat::get_Kind()
523
+ @_property
524
+ def kind(self) -> LearningModelFeatureKind: ...
525
+ # Windows.Foundation.Collections.IVectorView`1<System.Int64> Windows.AI.MachineLearning.TensorFloat::get_Shape()
526
+ @_property
527
+ def shape(self) -> _cabc.Sequence[winrt.system.Int64]: ...
528
+ # Windows.AI.MachineLearning.TensorKind Windows.AI.MachineLearning.TensorFloat::get_TensorKind()
529
+ @_property
530
+ def tensor_kind(self) -> TensorKind: ...
531
+
532
+ @typing.final
533
+ class TensorFloat16Bit_Static(winrt.system.Object_Static):
534
+ @typing.overload
535
+ # Windows.AI.MachineLearning.TensorFloat16Bit Windows.AI.MachineLearning.TensorFloat16Bit::Create()
536
+ def create(cls) -> TensorFloat16Bit: ...
537
+ @typing.overload
538
+ # Windows.AI.MachineLearning.TensorFloat16Bit Windows.AI.MachineLearning.TensorFloat16Bit::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
539
+ def create(cls, shape: _cabc.Iterable[winrt.system.Int64], /) -> TensorFloat16Bit: ...
540
+ # Deprecated alias of create() for pywinrt v3.x compatibility.
541
+ # Windows.AI.MachineLearning.TensorFloat16Bit Windows.AI.MachineLearning.TensorFloat16Bit::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
542
+ @deprecated("Use create() instead.")
543
+ def create2(cls, shape: _cabc.Iterable[winrt.system.Int64], /) -> TensorFloat16Bit: ...
544
+ # Windows.AI.MachineLearning.TensorFloat16Bit Windows.AI.MachineLearning.TensorFloat16Bit::CreateFromArray(Windows.Foundation.Collections.IIterable`1<System.Int64>,System.Single[])
545
+ def create_from_array(cls, shape: _cabc.Iterable[winrt.system.Int64], data: winrt.system.Array[winrt.system.Single] | winrt.system.ReadableBuffer, /) -> TensorFloat16Bit: ...
546
+ # Windows.AI.MachineLearning.TensorFloat16Bit Windows.AI.MachineLearning.TensorFloat16Bit::CreateFromBuffer(System.Int64[],Windows.Storage.Streams.IBuffer)
547
+ def create_from_buffer(cls, shape: winrt.system.Array[winrt.system.Int64] | winrt.system.ReadableBuffer, buffer: winrt.system.ReadableBuffer, /) -> TensorFloat16Bit: ...
548
+ # Windows.AI.MachineLearning.TensorFloat16Bit Windows.AI.MachineLearning.TensorFloat16Bit::CreateFromIterable(Windows.Foundation.Collections.IIterable`1<System.Int64>,Windows.Foundation.Collections.IIterable`1<System.Single>)
549
+ def create_from_iterable(cls, shape: _cabc.Iterable[winrt.system.Int64], data: _cabc.Iterable[winrt.system.Single], /) -> TensorFloat16Bit: ...
550
+ # Windows.AI.MachineLearning.TensorFloat16Bit Windows.AI.MachineLearning.TensorFloat16Bit::CreateFromShapeArrayAndDataArray(System.Int64[],System.Single[])
551
+ def create_from_shape_array_and_data_array(cls, shape: winrt.system.Array[winrt.system.Int64] | winrt.system.ReadableBuffer, data: winrt.system.Array[winrt.system.Single] | winrt.system.ReadableBuffer, /) -> TensorFloat16Bit: ...
552
+
553
+ @typing.final
554
+ class TensorFloat16Bit(windows_foundation.IMemoryBuffer, windows_foundation.IClosable, ITensor, ILearningModelFeatureValue, winrt.system.Object, metaclass=TensorFloat16Bit_Static):
555
+ def __enter__(self) -> typing.Self: ...
556
+ def __exit__(self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: types.TracebackType | None) -> None: ...
557
+ def __buffer__(self, flags: int, /) -> memoryview: ...
558
+ def __release_buffer__(self, view: memoryview, /) -> None: ...
559
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
560
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
561
+ # System.Void Windows.AI.MachineLearning.TensorFloat16Bit::Close()
562
+ def close(self) -> None: ...
563
+ # Windows.Foundation.IMemoryBufferReference Windows.AI.MachineLearning.TensorFloat16Bit::CreateReference()
564
+ @deprecated("Use the IMemoryBuffer itself as a buffer instead, e.g. with memoryview().")
565
+ def create_reference(self) -> windows_foundation.IMemoryBufferReference: ...
566
+ # Windows.Foundation.Collections.IVectorView`1<System.Single> Windows.AI.MachineLearning.TensorFloat16Bit::GetAsVectorView()
567
+ def get_as_vector_view(self) -> _cabc.Sequence[winrt.system.Single]: ...
568
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.TensorFloat16Bit::get_Kind()
569
+ @_property
570
+ def kind(self) -> LearningModelFeatureKind: ...
571
+ # Windows.Foundation.Collections.IVectorView`1<System.Int64> Windows.AI.MachineLearning.TensorFloat16Bit::get_Shape()
572
+ @_property
573
+ def shape(self) -> _cabc.Sequence[winrt.system.Int64]: ...
574
+ # Windows.AI.MachineLearning.TensorKind Windows.AI.MachineLearning.TensorFloat16Bit::get_TensorKind()
575
+ @_property
576
+ def tensor_kind(self) -> TensorKind: ...
577
+
578
+ @typing.final
579
+ class TensorInt16Bit_Static(winrt.system.Object_Static):
580
+ @typing.overload
581
+ # Windows.AI.MachineLearning.TensorInt16Bit Windows.AI.MachineLearning.TensorInt16Bit::Create()
582
+ def create(cls) -> TensorInt16Bit: ...
583
+ @typing.overload
584
+ # Windows.AI.MachineLearning.TensorInt16Bit Windows.AI.MachineLearning.TensorInt16Bit::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
585
+ def create(cls, shape: _cabc.Iterable[winrt.system.Int64], /) -> TensorInt16Bit: ...
586
+ # Deprecated alias of create() for pywinrt v3.x compatibility.
587
+ # Windows.AI.MachineLearning.TensorInt16Bit Windows.AI.MachineLearning.TensorInt16Bit::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
588
+ @deprecated("Use create() instead.")
589
+ def create2(cls, shape: _cabc.Iterable[winrt.system.Int64], /) -> TensorInt16Bit: ...
590
+ # Windows.AI.MachineLearning.TensorInt16Bit Windows.AI.MachineLearning.TensorInt16Bit::CreateFromArray(Windows.Foundation.Collections.IIterable`1<System.Int64>,System.Int16[])
591
+ def create_from_array(cls, shape: _cabc.Iterable[winrt.system.Int64], data: winrt.system.Array[winrt.system.Int16] | winrt.system.ReadableBuffer, /) -> TensorInt16Bit: ...
592
+ # Windows.AI.MachineLearning.TensorInt16Bit Windows.AI.MachineLearning.TensorInt16Bit::CreateFromBuffer(System.Int64[],Windows.Storage.Streams.IBuffer)
593
+ def create_from_buffer(cls, shape: winrt.system.Array[winrt.system.Int64] | winrt.system.ReadableBuffer, buffer: winrt.system.ReadableBuffer, /) -> TensorInt16Bit: ...
594
+ # Windows.AI.MachineLearning.TensorInt16Bit Windows.AI.MachineLearning.TensorInt16Bit::CreateFromIterable(Windows.Foundation.Collections.IIterable`1<System.Int64>,Windows.Foundation.Collections.IIterable`1<System.Int16>)
595
+ def create_from_iterable(cls, shape: _cabc.Iterable[winrt.system.Int64], data: _cabc.Iterable[winrt.system.Int16], /) -> TensorInt16Bit: ...
596
+ # Windows.AI.MachineLearning.TensorInt16Bit Windows.AI.MachineLearning.TensorInt16Bit::CreateFromShapeArrayAndDataArray(System.Int64[],System.Int16[])
597
+ def create_from_shape_array_and_data_array(cls, shape: winrt.system.Array[winrt.system.Int64] | winrt.system.ReadableBuffer, data: winrt.system.Array[winrt.system.Int16] | winrt.system.ReadableBuffer, /) -> TensorInt16Bit: ...
598
+
599
+ @typing.final
600
+ class TensorInt16Bit(windows_foundation.IMemoryBuffer, windows_foundation.IClosable, ITensor, ILearningModelFeatureValue, winrt.system.Object, metaclass=TensorInt16Bit_Static):
601
+ def __enter__(self) -> typing.Self: ...
602
+ def __exit__(self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: types.TracebackType | None) -> None: ...
603
+ def __buffer__(self, flags: int, /) -> memoryview: ...
604
+ def __release_buffer__(self, view: memoryview, /) -> None: ...
605
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
606
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
607
+ # System.Void Windows.AI.MachineLearning.TensorInt16Bit::Close()
608
+ def close(self) -> None: ...
609
+ # Windows.Foundation.IMemoryBufferReference Windows.AI.MachineLearning.TensorInt16Bit::CreateReference()
610
+ @deprecated("Use the IMemoryBuffer itself as a buffer instead, e.g. with memoryview().")
611
+ def create_reference(self) -> windows_foundation.IMemoryBufferReference: ...
612
+ # Windows.Foundation.Collections.IVectorView`1<System.Int16> Windows.AI.MachineLearning.TensorInt16Bit::GetAsVectorView()
613
+ def get_as_vector_view(self) -> _cabc.Sequence[winrt.system.Int16]: ...
614
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.TensorInt16Bit::get_Kind()
615
+ @_property
616
+ def kind(self) -> LearningModelFeatureKind: ...
617
+ # Windows.Foundation.Collections.IVectorView`1<System.Int64> Windows.AI.MachineLearning.TensorInt16Bit::get_Shape()
618
+ @_property
619
+ def shape(self) -> _cabc.Sequence[winrt.system.Int64]: ...
620
+ # Windows.AI.MachineLearning.TensorKind Windows.AI.MachineLearning.TensorInt16Bit::get_TensorKind()
621
+ @_property
622
+ def tensor_kind(self) -> TensorKind: ...
623
+
624
+ @typing.final
625
+ class TensorInt32Bit_Static(winrt.system.Object_Static):
626
+ @typing.overload
627
+ # Windows.AI.MachineLearning.TensorInt32Bit Windows.AI.MachineLearning.TensorInt32Bit::Create()
628
+ def create(cls) -> TensorInt32Bit: ...
629
+ @typing.overload
630
+ # Windows.AI.MachineLearning.TensorInt32Bit Windows.AI.MachineLearning.TensorInt32Bit::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
631
+ def create(cls, shape: _cabc.Iterable[winrt.system.Int64], /) -> TensorInt32Bit: ...
632
+ # Deprecated alias of create() for pywinrt v3.x compatibility.
633
+ # Windows.AI.MachineLearning.TensorInt32Bit Windows.AI.MachineLearning.TensorInt32Bit::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
634
+ @deprecated("Use create() instead.")
635
+ def create2(cls, shape: _cabc.Iterable[winrt.system.Int64], /) -> TensorInt32Bit: ...
636
+ # Windows.AI.MachineLearning.TensorInt32Bit Windows.AI.MachineLearning.TensorInt32Bit::CreateFromArray(Windows.Foundation.Collections.IIterable`1<System.Int64>,System.Int32[])
637
+ def create_from_array(cls, shape: _cabc.Iterable[winrt.system.Int64], data: winrt.system.Array[winrt.system.Int32] | winrt.system.ReadableBuffer, /) -> TensorInt32Bit: ...
638
+ # Windows.AI.MachineLearning.TensorInt32Bit Windows.AI.MachineLearning.TensorInt32Bit::CreateFromBuffer(System.Int64[],Windows.Storage.Streams.IBuffer)
639
+ def create_from_buffer(cls, shape: winrt.system.Array[winrt.system.Int64] | winrt.system.ReadableBuffer, buffer: winrt.system.ReadableBuffer, /) -> TensorInt32Bit: ...
640
+ # Windows.AI.MachineLearning.TensorInt32Bit Windows.AI.MachineLearning.TensorInt32Bit::CreateFromIterable(Windows.Foundation.Collections.IIterable`1<System.Int64>,Windows.Foundation.Collections.IIterable`1<System.Int32>)
641
+ def create_from_iterable(cls, shape: _cabc.Iterable[winrt.system.Int64], data: _cabc.Iterable[winrt.system.Int32], /) -> TensorInt32Bit: ...
642
+ # Windows.AI.MachineLearning.TensorInt32Bit Windows.AI.MachineLearning.TensorInt32Bit::CreateFromShapeArrayAndDataArray(System.Int64[],System.Int32[])
643
+ def create_from_shape_array_and_data_array(cls, shape: winrt.system.Array[winrt.system.Int64] | winrt.system.ReadableBuffer, data: winrt.system.Array[winrt.system.Int32] | winrt.system.ReadableBuffer, /) -> TensorInt32Bit: ...
644
+
645
+ @typing.final
646
+ class TensorInt32Bit(windows_foundation.IMemoryBuffer, windows_foundation.IClosable, ITensor, ILearningModelFeatureValue, winrt.system.Object, metaclass=TensorInt32Bit_Static):
647
+ def __enter__(self) -> typing.Self: ...
648
+ def __exit__(self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: types.TracebackType | None) -> None: ...
649
+ def __buffer__(self, flags: int, /) -> memoryview: ...
650
+ def __release_buffer__(self, view: memoryview, /) -> None: ...
651
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
652
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
653
+ # System.Void Windows.AI.MachineLearning.TensorInt32Bit::Close()
654
+ def close(self) -> None: ...
655
+ # Windows.Foundation.IMemoryBufferReference Windows.AI.MachineLearning.TensorInt32Bit::CreateReference()
656
+ @deprecated("Use the IMemoryBuffer itself as a buffer instead, e.g. with memoryview().")
657
+ def create_reference(self) -> windows_foundation.IMemoryBufferReference: ...
658
+ # Windows.Foundation.Collections.IVectorView`1<System.Int32> Windows.AI.MachineLearning.TensorInt32Bit::GetAsVectorView()
659
+ def get_as_vector_view(self) -> _cabc.Sequence[winrt.system.Int32]: ...
660
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.TensorInt32Bit::get_Kind()
661
+ @_property
662
+ def kind(self) -> LearningModelFeatureKind: ...
663
+ # Windows.Foundation.Collections.IVectorView`1<System.Int64> Windows.AI.MachineLearning.TensorInt32Bit::get_Shape()
664
+ @_property
665
+ def shape(self) -> _cabc.Sequence[winrt.system.Int64]: ...
666
+ # Windows.AI.MachineLearning.TensorKind Windows.AI.MachineLearning.TensorInt32Bit::get_TensorKind()
667
+ @_property
668
+ def tensor_kind(self) -> TensorKind: ...
669
+
670
+ @typing.final
671
+ class TensorInt64Bit_Static(winrt.system.Object_Static):
672
+ @typing.overload
673
+ # Windows.AI.MachineLearning.TensorInt64Bit Windows.AI.MachineLearning.TensorInt64Bit::Create()
674
+ def create(cls) -> TensorInt64Bit: ...
675
+ @typing.overload
676
+ # Windows.AI.MachineLearning.TensorInt64Bit Windows.AI.MachineLearning.TensorInt64Bit::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
677
+ def create(cls, shape: _cabc.Iterable[winrt.system.Int64], /) -> TensorInt64Bit: ...
678
+ # Deprecated alias of create() for pywinrt v3.x compatibility.
679
+ # Windows.AI.MachineLearning.TensorInt64Bit Windows.AI.MachineLearning.TensorInt64Bit::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
680
+ @deprecated("Use create() instead.")
681
+ def create2(cls, shape: _cabc.Iterable[winrt.system.Int64], /) -> TensorInt64Bit: ...
682
+ # Windows.AI.MachineLearning.TensorInt64Bit Windows.AI.MachineLearning.TensorInt64Bit::CreateFromArray(Windows.Foundation.Collections.IIterable`1<System.Int64>,System.Int64[])
683
+ def create_from_array(cls, shape: _cabc.Iterable[winrt.system.Int64], data: winrt.system.Array[winrt.system.Int64] | winrt.system.ReadableBuffer, /) -> TensorInt64Bit: ...
684
+ # Windows.AI.MachineLearning.TensorInt64Bit Windows.AI.MachineLearning.TensorInt64Bit::CreateFromBuffer(System.Int64[],Windows.Storage.Streams.IBuffer)
685
+ def create_from_buffer(cls, shape: winrt.system.Array[winrt.system.Int64] | winrt.system.ReadableBuffer, buffer: winrt.system.ReadableBuffer, /) -> TensorInt64Bit: ...
686
+ # Windows.AI.MachineLearning.TensorInt64Bit Windows.AI.MachineLearning.TensorInt64Bit::CreateFromIterable(Windows.Foundation.Collections.IIterable`1<System.Int64>,Windows.Foundation.Collections.IIterable`1<System.Int64>)
687
+ def create_from_iterable(cls, shape: _cabc.Iterable[winrt.system.Int64], data: _cabc.Iterable[winrt.system.Int64], /) -> TensorInt64Bit: ...
688
+ # Windows.AI.MachineLearning.TensorInt64Bit Windows.AI.MachineLearning.TensorInt64Bit::CreateFromShapeArrayAndDataArray(System.Int64[],System.Int64[])
689
+ def create_from_shape_array_and_data_array(cls, shape: winrt.system.Array[winrt.system.Int64] | winrt.system.ReadableBuffer, data: winrt.system.Array[winrt.system.Int64] | winrt.system.ReadableBuffer, /) -> TensorInt64Bit: ...
690
+
691
+ @typing.final
692
+ class TensorInt64Bit(windows_foundation.IMemoryBuffer, windows_foundation.IClosable, ITensor, ILearningModelFeatureValue, winrt.system.Object, metaclass=TensorInt64Bit_Static):
693
+ def __enter__(self) -> typing.Self: ...
694
+ def __exit__(self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: types.TracebackType | None) -> None: ...
695
+ def __buffer__(self, flags: int, /) -> memoryview: ...
696
+ def __release_buffer__(self, view: memoryview, /) -> None: ...
697
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
698
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
699
+ # System.Void Windows.AI.MachineLearning.TensorInt64Bit::Close()
700
+ def close(self) -> None: ...
701
+ # Windows.Foundation.IMemoryBufferReference Windows.AI.MachineLearning.TensorInt64Bit::CreateReference()
702
+ @deprecated("Use the IMemoryBuffer itself as a buffer instead, e.g. with memoryview().")
703
+ def create_reference(self) -> windows_foundation.IMemoryBufferReference: ...
704
+ # Windows.Foundation.Collections.IVectorView`1<System.Int64> Windows.AI.MachineLearning.TensorInt64Bit::GetAsVectorView()
705
+ def get_as_vector_view(self) -> _cabc.Sequence[winrt.system.Int64]: ...
706
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.TensorInt64Bit::get_Kind()
707
+ @_property
708
+ def kind(self) -> LearningModelFeatureKind: ...
709
+ # Windows.Foundation.Collections.IVectorView`1<System.Int64> Windows.AI.MachineLearning.TensorInt64Bit::get_Shape()
710
+ @_property
711
+ def shape(self) -> _cabc.Sequence[winrt.system.Int64]: ...
712
+ # Windows.AI.MachineLearning.TensorKind Windows.AI.MachineLearning.TensorInt64Bit::get_TensorKind()
713
+ @_property
714
+ def tensor_kind(self) -> TensorKind: ...
715
+
716
+ @typing.final
717
+ class TensorInt8Bit_Static(winrt.system.Object_Static):
718
+ @typing.overload
719
+ # Windows.AI.MachineLearning.TensorInt8Bit Windows.AI.MachineLearning.TensorInt8Bit::Create()
720
+ def create(cls) -> TensorInt8Bit: ...
721
+ @typing.overload
722
+ # Windows.AI.MachineLearning.TensorInt8Bit Windows.AI.MachineLearning.TensorInt8Bit::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
723
+ def create(cls, shape: _cabc.Iterable[winrt.system.Int64], /) -> TensorInt8Bit: ...
724
+ # Deprecated alias of create() for pywinrt v3.x compatibility.
725
+ # Windows.AI.MachineLearning.TensorInt8Bit Windows.AI.MachineLearning.TensorInt8Bit::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
726
+ @deprecated("Use create() instead.")
727
+ def create2(cls, shape: _cabc.Iterable[winrt.system.Int64], /) -> TensorInt8Bit: ...
728
+ # Windows.AI.MachineLearning.TensorInt8Bit Windows.AI.MachineLearning.TensorInt8Bit::CreateFromArray(Windows.Foundation.Collections.IIterable`1<System.Int64>,System.Byte[])
729
+ def create_from_array(cls, shape: _cabc.Iterable[winrt.system.Int64], data: winrt.system.Array[winrt.system.UInt8] | winrt.system.ReadableBuffer, /) -> TensorInt8Bit: ...
730
+ # Windows.AI.MachineLearning.TensorInt8Bit Windows.AI.MachineLearning.TensorInt8Bit::CreateFromBuffer(System.Int64[],Windows.Storage.Streams.IBuffer)
731
+ def create_from_buffer(cls, shape: winrt.system.Array[winrt.system.Int64] | winrt.system.ReadableBuffer, buffer: winrt.system.ReadableBuffer, /) -> TensorInt8Bit: ...
732
+ # Windows.AI.MachineLearning.TensorInt8Bit Windows.AI.MachineLearning.TensorInt8Bit::CreateFromIterable(Windows.Foundation.Collections.IIterable`1<System.Int64>,Windows.Foundation.Collections.IIterable`1<System.Byte>)
733
+ def create_from_iterable(cls, shape: _cabc.Iterable[winrt.system.Int64], data: _cabc.Iterable[winrt.system.UInt8], /) -> TensorInt8Bit: ...
734
+ # Windows.AI.MachineLearning.TensorInt8Bit Windows.AI.MachineLearning.TensorInt8Bit::CreateFromShapeArrayAndDataArray(System.Int64[],System.Byte[])
735
+ def create_from_shape_array_and_data_array(cls, shape: winrt.system.Array[winrt.system.Int64] | winrt.system.ReadableBuffer, data: winrt.system.Array[winrt.system.UInt8] | winrt.system.ReadableBuffer, /) -> TensorInt8Bit: ...
736
+
737
+ @typing.final
738
+ class TensorInt8Bit(windows_foundation.IMemoryBuffer, windows_foundation.IClosable, ITensor, ILearningModelFeatureValue, winrt.system.Object, metaclass=TensorInt8Bit_Static):
739
+ def __enter__(self) -> typing.Self: ...
740
+ def __exit__(self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: types.TracebackType | None) -> None: ...
741
+ def __buffer__(self, flags: int, /) -> memoryview: ...
742
+ def __release_buffer__(self, view: memoryview, /) -> None: ...
743
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
744
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
745
+ # System.Void Windows.AI.MachineLearning.TensorInt8Bit::Close()
746
+ def close(self) -> None: ...
747
+ # Windows.Foundation.IMemoryBufferReference Windows.AI.MachineLearning.TensorInt8Bit::CreateReference()
748
+ @deprecated("Use the IMemoryBuffer itself as a buffer instead, e.g. with memoryview().")
749
+ def create_reference(self) -> windows_foundation.IMemoryBufferReference: ...
750
+ # Windows.Foundation.Collections.IVectorView`1<System.Byte> Windows.AI.MachineLearning.TensorInt8Bit::GetAsVectorView()
751
+ def get_as_vector_view(self) -> _cabc.Sequence[winrt.system.UInt8]: ...
752
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.TensorInt8Bit::get_Kind()
753
+ @_property
754
+ def kind(self) -> LearningModelFeatureKind: ...
755
+ # Windows.Foundation.Collections.IVectorView`1<System.Int64> Windows.AI.MachineLearning.TensorInt8Bit::get_Shape()
756
+ @_property
757
+ def shape(self) -> _cabc.Sequence[winrt.system.Int64]: ...
758
+ # Windows.AI.MachineLearning.TensorKind Windows.AI.MachineLearning.TensorInt8Bit::get_TensorKind()
759
+ @_property
760
+ def tensor_kind(self) -> TensorKind: ...
761
+
762
+ @typing.final
763
+ class TensorString_Static(winrt.system.Object_Static):
764
+ @typing.overload
765
+ # Windows.AI.MachineLearning.TensorString Windows.AI.MachineLearning.TensorString::Create()
766
+ def create(cls) -> TensorString: ...
767
+ @typing.overload
768
+ # Windows.AI.MachineLearning.TensorString Windows.AI.MachineLearning.TensorString::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
769
+ def create(cls, shape: _cabc.Iterable[winrt.system.Int64], /) -> TensorString: ...
770
+ # Deprecated alias of create() for pywinrt v3.x compatibility.
771
+ # Windows.AI.MachineLearning.TensorString Windows.AI.MachineLearning.TensorString::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
772
+ @deprecated("Use create() instead.")
773
+ def create2(cls, shape: _cabc.Iterable[winrt.system.Int64], /) -> TensorString: ...
774
+ # Windows.AI.MachineLearning.TensorString Windows.AI.MachineLearning.TensorString::CreateFromArray(Windows.Foundation.Collections.IIterable`1<System.Int64>,System.String[])
775
+ def create_from_array(cls, shape: _cabc.Iterable[winrt.system.Int64], data: winrt.system.Array[str] | winrt.system.ReadableBuffer, /) -> TensorString: ...
776
+ # Windows.AI.MachineLearning.TensorString Windows.AI.MachineLearning.TensorString::CreateFromIterable(Windows.Foundation.Collections.IIterable`1<System.Int64>,Windows.Foundation.Collections.IIterable`1<System.String>)
777
+ def create_from_iterable(cls, shape: _cabc.Iterable[winrt.system.Int64], data: _cabc.Iterable[str], /) -> TensorString: ...
778
+ # Windows.AI.MachineLearning.TensorString Windows.AI.MachineLearning.TensorString::CreateFromShapeArrayAndDataArray(System.Int64[],System.String[])
779
+ def create_from_shape_array_and_data_array(cls, shape: winrt.system.Array[winrt.system.Int64] | winrt.system.ReadableBuffer, data: winrt.system.Array[str] | winrt.system.ReadableBuffer, /) -> TensorString: ...
780
+
781
+ @typing.final
782
+ class TensorString(windows_foundation.IMemoryBuffer, windows_foundation.IClosable, ITensor, ILearningModelFeatureValue, winrt.system.Object, metaclass=TensorString_Static):
783
+ def __enter__(self) -> typing.Self: ...
784
+ def __exit__(self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: types.TracebackType | None) -> None: ...
785
+ def __buffer__(self, flags: int, /) -> memoryview: ...
786
+ def __release_buffer__(self, view: memoryview, /) -> None: ...
787
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
788
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
789
+ # System.Void Windows.AI.MachineLearning.TensorString::Close()
790
+ def close(self) -> None: ...
791
+ # Windows.Foundation.IMemoryBufferReference Windows.AI.MachineLearning.TensorString::CreateReference()
792
+ @deprecated("Use the IMemoryBuffer itself as a buffer instead, e.g. with memoryview().")
793
+ def create_reference(self) -> windows_foundation.IMemoryBufferReference: ...
794
+ # Windows.Foundation.Collections.IVectorView`1<System.String> Windows.AI.MachineLearning.TensorString::GetAsVectorView()
795
+ def get_as_vector_view(self) -> _cabc.Sequence[str]: ...
796
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.TensorString::get_Kind()
797
+ @_property
798
+ def kind(self) -> LearningModelFeatureKind: ...
799
+ # Windows.Foundation.Collections.IVectorView`1<System.Int64> Windows.AI.MachineLearning.TensorString::get_Shape()
800
+ @_property
801
+ def shape(self) -> _cabc.Sequence[winrt.system.Int64]: ...
802
+ # Windows.AI.MachineLearning.TensorKind Windows.AI.MachineLearning.TensorString::get_TensorKind()
803
+ @_property
804
+ def tensor_kind(self) -> TensorKind: ...
805
+
806
+ @typing.final
807
+ class TensorUInt16Bit_Static(winrt.system.Object_Static):
808
+ @typing.overload
809
+ # Windows.AI.MachineLearning.TensorUInt16Bit Windows.AI.MachineLearning.TensorUInt16Bit::Create()
810
+ def create(cls) -> TensorUInt16Bit: ...
811
+ @typing.overload
812
+ # Windows.AI.MachineLearning.TensorUInt16Bit Windows.AI.MachineLearning.TensorUInt16Bit::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
813
+ def create(cls, shape: _cabc.Iterable[winrt.system.Int64], /) -> TensorUInt16Bit: ...
814
+ # Deprecated alias of create() for pywinrt v3.x compatibility.
815
+ # Windows.AI.MachineLearning.TensorUInt16Bit Windows.AI.MachineLearning.TensorUInt16Bit::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
816
+ @deprecated("Use create() instead.")
817
+ def create2(cls, shape: _cabc.Iterable[winrt.system.Int64], /) -> TensorUInt16Bit: ...
818
+ # Windows.AI.MachineLearning.TensorUInt16Bit Windows.AI.MachineLearning.TensorUInt16Bit::CreateFromArray(Windows.Foundation.Collections.IIterable`1<System.Int64>,System.UInt16[])
819
+ def create_from_array(cls, shape: _cabc.Iterable[winrt.system.Int64], data: winrt.system.Array[winrt.system.UInt16] | winrt.system.ReadableBuffer, /) -> TensorUInt16Bit: ...
820
+ # Windows.AI.MachineLearning.TensorUInt16Bit Windows.AI.MachineLearning.TensorUInt16Bit::CreateFromBuffer(System.Int64[],Windows.Storage.Streams.IBuffer)
821
+ def create_from_buffer(cls, shape: winrt.system.Array[winrt.system.Int64] | winrt.system.ReadableBuffer, buffer: winrt.system.ReadableBuffer, /) -> TensorUInt16Bit: ...
822
+ # Windows.AI.MachineLearning.TensorUInt16Bit Windows.AI.MachineLearning.TensorUInt16Bit::CreateFromIterable(Windows.Foundation.Collections.IIterable`1<System.Int64>,Windows.Foundation.Collections.IIterable`1<System.UInt16>)
823
+ def create_from_iterable(cls, shape: _cabc.Iterable[winrt.system.Int64], data: _cabc.Iterable[winrt.system.UInt16], /) -> TensorUInt16Bit: ...
824
+ # Windows.AI.MachineLearning.TensorUInt16Bit Windows.AI.MachineLearning.TensorUInt16Bit::CreateFromShapeArrayAndDataArray(System.Int64[],System.UInt16[])
825
+ def create_from_shape_array_and_data_array(cls, shape: winrt.system.Array[winrt.system.Int64] | winrt.system.ReadableBuffer, data: winrt.system.Array[winrt.system.UInt16] | winrt.system.ReadableBuffer, /) -> TensorUInt16Bit: ...
826
+
827
+ @typing.final
828
+ class TensorUInt16Bit(windows_foundation.IMemoryBuffer, windows_foundation.IClosable, ITensor, ILearningModelFeatureValue, winrt.system.Object, metaclass=TensorUInt16Bit_Static):
829
+ def __enter__(self) -> typing.Self: ...
830
+ def __exit__(self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: types.TracebackType | None) -> None: ...
831
+ def __buffer__(self, flags: int, /) -> memoryview: ...
832
+ def __release_buffer__(self, view: memoryview, /) -> None: ...
833
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
834
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
835
+ # System.Void Windows.AI.MachineLearning.TensorUInt16Bit::Close()
836
+ def close(self) -> None: ...
837
+ # Windows.Foundation.IMemoryBufferReference Windows.AI.MachineLearning.TensorUInt16Bit::CreateReference()
838
+ @deprecated("Use the IMemoryBuffer itself as a buffer instead, e.g. with memoryview().")
839
+ def create_reference(self) -> windows_foundation.IMemoryBufferReference: ...
840
+ # Windows.Foundation.Collections.IVectorView`1<System.UInt16> Windows.AI.MachineLearning.TensorUInt16Bit::GetAsVectorView()
841
+ def get_as_vector_view(self) -> _cabc.Sequence[winrt.system.UInt16]: ...
842
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.TensorUInt16Bit::get_Kind()
843
+ @_property
844
+ def kind(self) -> LearningModelFeatureKind: ...
845
+ # Windows.Foundation.Collections.IVectorView`1<System.Int64> Windows.AI.MachineLearning.TensorUInt16Bit::get_Shape()
846
+ @_property
847
+ def shape(self) -> _cabc.Sequence[winrt.system.Int64]: ...
848
+ # Windows.AI.MachineLearning.TensorKind Windows.AI.MachineLearning.TensorUInt16Bit::get_TensorKind()
849
+ @_property
850
+ def tensor_kind(self) -> TensorKind: ...
851
+
852
+ @typing.final
853
+ class TensorUInt32Bit_Static(winrt.system.Object_Static):
854
+ @typing.overload
855
+ # Windows.AI.MachineLearning.TensorUInt32Bit Windows.AI.MachineLearning.TensorUInt32Bit::Create()
856
+ def create(cls) -> TensorUInt32Bit: ...
857
+ @typing.overload
858
+ # Windows.AI.MachineLearning.TensorUInt32Bit Windows.AI.MachineLearning.TensorUInt32Bit::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
859
+ def create(cls, shape: _cabc.Iterable[winrt.system.Int64], /) -> TensorUInt32Bit: ...
860
+ # Deprecated alias of create() for pywinrt v3.x compatibility.
861
+ # Windows.AI.MachineLearning.TensorUInt32Bit Windows.AI.MachineLearning.TensorUInt32Bit::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
862
+ @deprecated("Use create() instead.")
863
+ def create2(cls, shape: _cabc.Iterable[winrt.system.Int64], /) -> TensorUInt32Bit: ...
864
+ # Windows.AI.MachineLearning.TensorUInt32Bit Windows.AI.MachineLearning.TensorUInt32Bit::CreateFromArray(Windows.Foundation.Collections.IIterable`1<System.Int64>,System.UInt32[])
865
+ def create_from_array(cls, shape: _cabc.Iterable[winrt.system.Int64], data: winrt.system.Array[winrt.system.UInt32] | winrt.system.ReadableBuffer, /) -> TensorUInt32Bit: ...
866
+ # Windows.AI.MachineLearning.TensorUInt32Bit Windows.AI.MachineLearning.TensorUInt32Bit::CreateFromBuffer(System.Int64[],Windows.Storage.Streams.IBuffer)
867
+ def create_from_buffer(cls, shape: winrt.system.Array[winrt.system.Int64] | winrt.system.ReadableBuffer, buffer: winrt.system.ReadableBuffer, /) -> TensorUInt32Bit: ...
868
+ # Windows.AI.MachineLearning.TensorUInt32Bit Windows.AI.MachineLearning.TensorUInt32Bit::CreateFromIterable(Windows.Foundation.Collections.IIterable`1<System.Int64>,Windows.Foundation.Collections.IIterable`1<System.UInt32>)
869
+ def create_from_iterable(cls, shape: _cabc.Iterable[winrt.system.Int64], data: _cabc.Iterable[winrt.system.UInt32], /) -> TensorUInt32Bit: ...
870
+ # Windows.AI.MachineLearning.TensorUInt32Bit Windows.AI.MachineLearning.TensorUInt32Bit::CreateFromShapeArrayAndDataArray(System.Int64[],System.UInt32[])
871
+ def create_from_shape_array_and_data_array(cls, shape: winrt.system.Array[winrt.system.Int64] | winrt.system.ReadableBuffer, data: winrt.system.Array[winrt.system.UInt32] | winrt.system.ReadableBuffer, /) -> TensorUInt32Bit: ...
872
+
873
+ @typing.final
874
+ class TensorUInt32Bit(windows_foundation.IMemoryBuffer, windows_foundation.IClosable, ITensor, ILearningModelFeatureValue, winrt.system.Object, metaclass=TensorUInt32Bit_Static):
875
+ def __enter__(self) -> typing.Self: ...
876
+ def __exit__(self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: types.TracebackType | None) -> None: ...
877
+ def __buffer__(self, flags: int, /) -> memoryview: ...
878
+ def __release_buffer__(self, view: memoryview, /) -> None: ...
879
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
880
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
881
+ # System.Void Windows.AI.MachineLearning.TensorUInt32Bit::Close()
882
+ def close(self) -> None: ...
883
+ # Windows.Foundation.IMemoryBufferReference Windows.AI.MachineLearning.TensorUInt32Bit::CreateReference()
884
+ @deprecated("Use the IMemoryBuffer itself as a buffer instead, e.g. with memoryview().")
885
+ def create_reference(self) -> windows_foundation.IMemoryBufferReference: ...
886
+ # Windows.Foundation.Collections.IVectorView`1<System.UInt32> Windows.AI.MachineLearning.TensorUInt32Bit::GetAsVectorView()
887
+ def get_as_vector_view(self) -> _cabc.Sequence[winrt.system.UInt32]: ...
888
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.TensorUInt32Bit::get_Kind()
889
+ @_property
890
+ def kind(self) -> LearningModelFeatureKind: ...
891
+ # Windows.Foundation.Collections.IVectorView`1<System.Int64> Windows.AI.MachineLearning.TensorUInt32Bit::get_Shape()
892
+ @_property
893
+ def shape(self) -> _cabc.Sequence[winrt.system.Int64]: ...
894
+ # Windows.AI.MachineLearning.TensorKind Windows.AI.MachineLearning.TensorUInt32Bit::get_TensorKind()
895
+ @_property
896
+ def tensor_kind(self) -> TensorKind: ...
897
+
898
+ @typing.final
899
+ class TensorUInt64Bit_Static(winrt.system.Object_Static):
900
+ @typing.overload
901
+ # Windows.AI.MachineLearning.TensorUInt64Bit Windows.AI.MachineLearning.TensorUInt64Bit::Create()
902
+ def create(cls) -> TensorUInt64Bit: ...
903
+ @typing.overload
904
+ # Windows.AI.MachineLearning.TensorUInt64Bit Windows.AI.MachineLearning.TensorUInt64Bit::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
905
+ def create(cls, shape: _cabc.Iterable[winrt.system.Int64], /) -> TensorUInt64Bit: ...
906
+ # Deprecated alias of create() for pywinrt v3.x compatibility.
907
+ # Windows.AI.MachineLearning.TensorUInt64Bit Windows.AI.MachineLearning.TensorUInt64Bit::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
908
+ @deprecated("Use create() instead.")
909
+ def create2(cls, shape: _cabc.Iterable[winrt.system.Int64], /) -> TensorUInt64Bit: ...
910
+ # Windows.AI.MachineLearning.TensorUInt64Bit Windows.AI.MachineLearning.TensorUInt64Bit::CreateFromArray(Windows.Foundation.Collections.IIterable`1<System.Int64>,System.UInt64[])
911
+ def create_from_array(cls, shape: _cabc.Iterable[winrt.system.Int64], data: winrt.system.Array[winrt.system.UInt64] | winrt.system.ReadableBuffer, /) -> TensorUInt64Bit: ...
912
+ # Windows.AI.MachineLearning.TensorUInt64Bit Windows.AI.MachineLearning.TensorUInt64Bit::CreateFromBuffer(System.Int64[],Windows.Storage.Streams.IBuffer)
913
+ def create_from_buffer(cls, shape: winrt.system.Array[winrt.system.Int64] | winrt.system.ReadableBuffer, buffer: winrt.system.ReadableBuffer, /) -> TensorUInt64Bit: ...
914
+ # Windows.AI.MachineLearning.TensorUInt64Bit Windows.AI.MachineLearning.TensorUInt64Bit::CreateFromIterable(Windows.Foundation.Collections.IIterable`1<System.Int64>,Windows.Foundation.Collections.IIterable`1<System.UInt64>)
915
+ def create_from_iterable(cls, shape: _cabc.Iterable[winrt.system.Int64], data: _cabc.Iterable[winrt.system.UInt64], /) -> TensorUInt64Bit: ...
916
+ # Windows.AI.MachineLearning.TensorUInt64Bit Windows.AI.MachineLearning.TensorUInt64Bit::CreateFromShapeArrayAndDataArray(System.Int64[],System.UInt64[])
917
+ def create_from_shape_array_and_data_array(cls, shape: winrt.system.Array[winrt.system.Int64] | winrt.system.ReadableBuffer, data: winrt.system.Array[winrt.system.UInt64] | winrt.system.ReadableBuffer, /) -> TensorUInt64Bit: ...
918
+
919
+ @typing.final
920
+ class TensorUInt64Bit(windows_foundation.IMemoryBuffer, windows_foundation.IClosable, ITensor, ILearningModelFeatureValue, winrt.system.Object, metaclass=TensorUInt64Bit_Static):
921
+ def __enter__(self) -> typing.Self: ...
922
+ def __exit__(self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: types.TracebackType | None) -> None: ...
923
+ def __buffer__(self, flags: int, /) -> memoryview: ...
924
+ def __release_buffer__(self, view: memoryview, /) -> None: ...
925
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
926
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
927
+ # System.Void Windows.AI.MachineLearning.TensorUInt64Bit::Close()
928
+ def close(self) -> None: ...
929
+ # Windows.Foundation.IMemoryBufferReference Windows.AI.MachineLearning.TensorUInt64Bit::CreateReference()
930
+ @deprecated("Use the IMemoryBuffer itself as a buffer instead, e.g. with memoryview().")
931
+ def create_reference(self) -> windows_foundation.IMemoryBufferReference: ...
932
+ # Windows.Foundation.Collections.IVectorView`1<System.UInt64> Windows.AI.MachineLearning.TensorUInt64Bit::GetAsVectorView()
933
+ def get_as_vector_view(self) -> _cabc.Sequence[winrt.system.UInt64]: ...
934
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.TensorUInt64Bit::get_Kind()
935
+ @_property
936
+ def kind(self) -> LearningModelFeatureKind: ...
937
+ # Windows.Foundation.Collections.IVectorView`1<System.Int64> Windows.AI.MachineLearning.TensorUInt64Bit::get_Shape()
938
+ @_property
939
+ def shape(self) -> _cabc.Sequence[winrt.system.Int64]: ...
940
+ # Windows.AI.MachineLearning.TensorKind Windows.AI.MachineLearning.TensorUInt64Bit::get_TensorKind()
941
+ @_property
942
+ def tensor_kind(self) -> TensorKind: ...
943
+
944
+ @typing.final
945
+ class TensorUInt8Bit_Static(winrt.system.Object_Static):
946
+ @typing.overload
947
+ # Windows.AI.MachineLearning.TensorUInt8Bit Windows.AI.MachineLearning.TensorUInt8Bit::Create()
948
+ def create(cls) -> TensorUInt8Bit: ...
949
+ @typing.overload
950
+ # Windows.AI.MachineLearning.TensorUInt8Bit Windows.AI.MachineLearning.TensorUInt8Bit::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
951
+ def create(cls, shape: _cabc.Iterable[winrt.system.Int64], /) -> TensorUInt8Bit: ...
952
+ # Deprecated alias of create() for pywinrt v3.x compatibility.
953
+ # Windows.AI.MachineLearning.TensorUInt8Bit Windows.AI.MachineLearning.TensorUInt8Bit::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
954
+ @deprecated("Use create() instead.")
955
+ def create2(cls, shape: _cabc.Iterable[winrt.system.Int64], /) -> TensorUInt8Bit: ...
956
+ # Windows.AI.MachineLearning.TensorUInt8Bit Windows.AI.MachineLearning.TensorUInt8Bit::CreateFromArray(Windows.Foundation.Collections.IIterable`1<System.Int64>,System.Byte[])
957
+ def create_from_array(cls, shape: _cabc.Iterable[winrt.system.Int64], data: winrt.system.Array[winrt.system.UInt8] | winrt.system.ReadableBuffer, /) -> TensorUInt8Bit: ...
958
+ # Windows.AI.MachineLearning.TensorUInt8Bit Windows.AI.MachineLearning.TensorUInt8Bit::CreateFromBuffer(System.Int64[],Windows.Storage.Streams.IBuffer)
959
+ def create_from_buffer(cls, shape: winrt.system.Array[winrt.system.Int64] | winrt.system.ReadableBuffer, buffer: winrt.system.ReadableBuffer, /) -> TensorUInt8Bit: ...
960
+ # Windows.AI.MachineLearning.TensorUInt8Bit Windows.AI.MachineLearning.TensorUInt8Bit::CreateFromIterable(Windows.Foundation.Collections.IIterable`1<System.Int64>,Windows.Foundation.Collections.IIterable`1<System.Byte>)
961
+ def create_from_iterable(cls, shape: _cabc.Iterable[winrt.system.Int64], data: _cabc.Iterable[winrt.system.UInt8], /) -> TensorUInt8Bit: ...
962
+ # Windows.AI.MachineLearning.TensorUInt8Bit Windows.AI.MachineLearning.TensorUInt8Bit::CreateFromShapeArrayAndDataArray(System.Int64[],System.Byte[])
963
+ def create_from_shape_array_and_data_array(cls, shape: winrt.system.Array[winrt.system.Int64] | winrt.system.ReadableBuffer, data: winrt.system.Array[winrt.system.UInt8] | winrt.system.ReadableBuffer, /) -> TensorUInt8Bit: ...
964
+
965
+ @typing.final
966
+ class TensorUInt8Bit(windows_foundation.IMemoryBuffer, windows_foundation.IClosable, ITensor, ILearningModelFeatureValue, winrt.system.Object, metaclass=TensorUInt8Bit_Static):
967
+ def __enter__(self) -> typing.Self: ...
968
+ def __exit__(self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: types.TracebackType | None) -> None: ...
969
+ def __buffer__(self, flags: int, /) -> memoryview: ...
970
+ def __release_buffer__(self, view: memoryview, /) -> None: ...
971
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
972
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
973
+ # System.Void Windows.AI.MachineLearning.TensorUInt8Bit::Close()
974
+ def close(self) -> None: ...
975
+ # Windows.Foundation.IMemoryBufferReference Windows.AI.MachineLearning.TensorUInt8Bit::CreateReference()
976
+ @deprecated("Use the IMemoryBuffer itself as a buffer instead, e.g. with memoryview().")
977
+ def create_reference(self) -> windows_foundation.IMemoryBufferReference: ...
978
+ # Windows.Foundation.Collections.IVectorView`1<System.Byte> Windows.AI.MachineLearning.TensorUInt8Bit::GetAsVectorView()
979
+ def get_as_vector_view(self) -> _cabc.Sequence[winrt.system.UInt8]: ...
980
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.TensorUInt8Bit::get_Kind()
981
+ @_property
982
+ def kind(self) -> LearningModelFeatureKind: ...
983
+ # Windows.Foundation.Collections.IVectorView`1<System.Int64> Windows.AI.MachineLearning.TensorUInt8Bit::get_Shape()
984
+ @_property
985
+ def shape(self) -> _cabc.Sequence[winrt.system.Int64]: ...
986
+ # Windows.AI.MachineLearning.TensorKind Windows.AI.MachineLearning.TensorUInt8Bit::get_TensorKind()
987
+ @_property
988
+ def tensor_kind(self) -> TensorKind: ...
989
+
990
+ class ILearningModelFeatureDescriptor(winrt.system.Object):
991
+ # System.String Windows.AI.MachineLearning.ILearningModelFeatureDescriptor::get_Description()
992
+ @_property
993
+ @abstractmethod
994
+ def description(self) -> str: ...
995
+ # System.Boolean Windows.AI.MachineLearning.ILearningModelFeatureDescriptor::get_IsRequired()
996
+ @_property
997
+ @abstractmethod
998
+ def is_required(self) -> bool: ...
999
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.ILearningModelFeatureDescriptor::get_Kind()
1000
+ @_property
1001
+ @abstractmethod
1002
+ def kind(self) -> LearningModelFeatureKind: ...
1003
+ # System.String Windows.AI.MachineLearning.ILearningModelFeatureDescriptor::get_Name()
1004
+ @_property
1005
+ @abstractmethod
1006
+ def name(self) -> str: ...
1007
+
1008
+ class ILearningModelFeatureValue(winrt.system.Object):
1009
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.ILearningModelFeatureValue::get_Kind()
1010
+ @_property
1011
+ @abstractmethod
1012
+ def kind(self) -> LearningModelFeatureKind: ...
1013
+
1014
+ class ILearningModelOperatorProvider(winrt.system.Object):
1015
+ ...
1016
+
1017
+ class ITensor(ILearningModelFeatureValue, winrt.system.Object):
1018
+ # Windows.Foundation.Collections.IVectorView`1<System.Int64> Windows.AI.MachineLearning.ITensor::get_Shape()
1019
+ @_property
1020
+ @abstractmethod
1021
+ def shape(self) -> _cabc.Sequence[winrt.system.Int64]: ...
1022
+ # Windows.AI.MachineLearning.TensorKind Windows.AI.MachineLearning.ITensor::get_TensorKind()
1023
+ @_property
1024
+ @abstractmethod
1025
+ def tensor_kind(self) -> TensorKind: ...
1026
+
File without changes
@@ -0,0 +1,53 @@
1
+ Metadata-Version: 2.5
2
+ Name: winrt-Windows.AI.MachineLearning
3
+ Version: 4!10.0.28000.2705
4
+ Summary: PyWinRT projection of the Windows.AI.MachineLearning namespace
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/winrt/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
+ Requires-Dist: winrt-windows-storage-streams>=4!10.0.28000.2705
26
+ Provides-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
+ Requires-Dist: winrt-windows-graphics-directx-direct3d11[all]>=4!10.0.28000.2705; extra == 'all'
30
+ Requires-Dist: winrt-windows-graphics-imaging[all]>=4!10.0.28000.2705; extra == 'all'
31
+ Requires-Dist: winrt-windows-graphics[all]>=4!10.0.28000.2705; extra == 'all'
32
+ Requires-Dist: winrt-windows-media[all]>=4!10.0.28000.2705; extra == 'all'
33
+ Requires-Dist: winrt-windows-storage-streams[all]>=4!10.0.28000.2705; extra == 'all'
34
+ Requires-Dist: winrt-windows-storage[all]>=4!10.0.28000.2705; extra == 'all'
35
+ Description-Content-Type: text/markdown
36
+
37
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
38
+
39
+ # winrt-Windows.AI.MachineLearning
40
+
41
+ Windows Runtime (WinRT) APIs for the `Windows.AI.MachineLearning` namespace.
42
+
43
+ This package provides the `winrt.windows.ai.machinelearning` module.
44
+
45
+ The WinRT APIs in it are those of version 10.0.28000.2705 of the
46
+ `Microsoft.Windows.SDK.CPP` NuGet package.
47
+
48
+ ```
49
+ pip install winrt-Windows.AI.MachineLearning
50
+ ```
51
+
52
+ Other WinRT namespaces are packages of their own, so install the package of
53
+ each namespace your code imports from.
@@ -0,0 +1,8 @@
1
+ winrt/windows/ai/machinelearning/__init__.py,sha256=W633KK0RNtaNQkoZq24EFOkncdJfTXkpRpwpNj_-BBg,2786
2
+ winrt/windows/ai/machinelearning/__init__.pyi,sha256=QFAxfEcaUS2er9Uiy5RLb1P7jPFejb_zfl80bE9TVHY,78845
3
+ winrt/windows/ai/machinelearning/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ winrt/windows/ai/machinelearning/_table.pywinrt,sha256=qM_eWsMZv9QyawIi3xghBC40n5UXB7xPbJiLRqPl_Xw,68568
5
+ winrt_windows_ai_machinelearning-4!10.0.28000.2705.dist-info/METADATA,sha256=slZQbcc94-4h_uffr61yqti25fnbNzUITEqq49OVIGc,2527
6
+ winrt_windows_ai_machinelearning-4!10.0.28000.2705.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
7
+ winrt_windows_ai_machinelearning-4!10.0.28000.2705.dist-info/licenses/LICENSE,sha256=dyVKOMqPV0fimbzMhqN3zpg6K6Y2OlekwrdfiZTBm8M,1225
8
+ winrt_windows_ai_machinelearning-4!10.0.28000.2705.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.32.4
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -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