winrt-Windows.AI.MachineLearning 3.2.1__cp314-cp314-win_arm64.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,784 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.1
2
+
3
+ import datetime
4
+ import sys
5
+ import types
6
+ import typing
7
+ import uuid as _uuid
8
+ from builtins import property as _property
9
+ from abc import abstractmethod
10
+
11
+ import winrt._winrt
12
+ import winrt.system
13
+ import winrt.windows.foundation as windows_foundation
14
+ import winrt.windows.foundation.collections as windows_foundation_collections
15
+ import winrt.windows.graphics as windows_graphics
16
+ import winrt.windows.graphics.directx.direct3d11 as windows_graphics_directx_direct3d11
17
+ import winrt.windows.graphics.imaging as windows_graphics_imaging
18
+ import winrt.windows.media as windows_media
19
+ import winrt.windows.storage as windows_storage
20
+ import winrt.windows.storage.streams as windows_storage_streams
21
+
22
+ from winrt.windows.ai.machinelearning import LearningModelDeviceKind, LearningModelFeatureKind, LearningModelPixelRange, TensorKind
23
+
24
+ Self = typing.TypeVar('Self')
25
+
26
+ @typing.final
27
+ class ImageFeatureDescriptor(winrt.system.Object, ILearningModelFeatureDescriptor):
28
+ # Windows.Graphics.Imaging.BitmapAlphaMode Windows.AI.MachineLearning.ImageFeatureDescriptor::get_BitmapAlphaMode()
29
+ @_property
30
+ def bitmap_alpha_mode(self) -> windows_graphics_imaging.BitmapAlphaMode: ...
31
+ # Windows.Graphics.Imaging.BitmapPixelFormat Windows.AI.MachineLearning.ImageFeatureDescriptor::get_BitmapPixelFormat()
32
+ @_property
33
+ def bitmap_pixel_format(self) -> windows_graphics_imaging.BitmapPixelFormat: ...
34
+ # System.UInt32 Windows.AI.MachineLearning.ImageFeatureDescriptor::get_Height()
35
+ @_property
36
+ def height(self) -> winrt.system.UInt32: ...
37
+ # System.UInt32 Windows.AI.MachineLearning.ImageFeatureDescriptor::get_Width()
38
+ @_property
39
+ def width(self) -> winrt.system.UInt32: ...
40
+ # Windows.AI.MachineLearning.LearningModelPixelRange Windows.AI.MachineLearning.ImageFeatureDescriptor::get_PixelRange()
41
+ @_property
42
+ def pixel_range(self) -> LearningModelPixelRange: ...
43
+ # System.String Windows.AI.MachineLearning.ImageFeatureDescriptor::get_Description()
44
+ @_property
45
+ def description(self) -> str: ...
46
+ # System.Boolean Windows.AI.MachineLearning.ImageFeatureDescriptor::get_IsRequired()
47
+ @_property
48
+ def is_required(self) -> bool: ...
49
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.ImageFeatureDescriptor::get_Kind()
50
+ @_property
51
+ def kind(self) -> LearningModelFeatureKind: ...
52
+ # System.String Windows.AI.MachineLearning.ImageFeatureDescriptor::get_Name()
53
+ @_property
54
+ def name(self) -> str: ...
55
+
56
+ @typing.final
57
+ class ImageFeatureValue_Static(winrt._winrt.IInspectable_Static):
58
+ # Windows.AI.MachineLearning.ImageFeatureValue Windows.AI.MachineLearning.ImageFeatureValue::CreateFromVideoFrame(Windows.Media.VideoFrame)
59
+ def create_from_video_frame(cls, image: windows_media.VideoFrame, /) -> ImageFeatureValue: ...
60
+
61
+ @typing.final
62
+ class ImageFeatureValue(winrt.system.Object, ILearningModelFeatureValue, metaclass=ImageFeatureValue_Static):
63
+ # Windows.Media.VideoFrame Windows.AI.MachineLearning.ImageFeatureValue::get_VideoFrame()
64
+ @_property
65
+ def video_frame(self) -> windows_media.VideoFrame: ...
66
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.ImageFeatureValue::get_Kind()
67
+ @_property
68
+ def kind(self) -> LearningModelFeatureKind: ...
69
+
70
+ @typing.final
71
+ class LearningModel_Static(winrt._winrt.IInspectable_Static):
72
+ # Windows.AI.MachineLearning.LearningModel Windows.AI.MachineLearning.LearningModel::LoadFromFilePath(System.String)
73
+ def load_from_file_path(cls, file_path: str, /) -> LearningModel: ...
74
+ # Windows.AI.MachineLearning.LearningModel Windows.AI.MachineLearning.LearningModel::LoadFromFilePath(System.String,Windows.AI.MachineLearning.ILearningModelOperatorProvider)
75
+ def load_from_file_path_with_operator_provider(cls, file_path: str, operator_provider: ILearningModelOperatorProvider, /) -> LearningModel: ...
76
+ # Windows.Foundation.IAsyncOperation`1<Windows.AI.MachineLearning.LearningModel> Windows.AI.MachineLearning.LearningModel::LoadFromStorageFileAsync(Windows.Storage.IStorageFile)
77
+ def load_from_storage_file_async(cls, model_file: windows_storage.IStorageFile, /) -> windows_foundation.IAsyncOperation[LearningModel]: ...
78
+ # Windows.Foundation.IAsyncOperation`1<Windows.AI.MachineLearning.LearningModel> Windows.AI.MachineLearning.LearningModel::LoadFromStorageFileAsync(Windows.Storage.IStorageFile,Windows.AI.MachineLearning.ILearningModelOperatorProvider)
79
+ def load_from_storage_file_with_operator_provider_async(cls, model_file: windows_storage.IStorageFile, operator_provider: ILearningModelOperatorProvider, /) -> windows_foundation.IAsyncOperation[LearningModel]: ...
80
+ # Windows.AI.MachineLearning.LearningModel Windows.AI.MachineLearning.LearningModel::LoadFromStream(Windows.Storage.Streams.IRandomAccessStreamReference)
81
+ def load_from_stream(cls, model_stream: windows_storage_streams.IRandomAccessStreamReference, /) -> LearningModel: ...
82
+ # Windows.Foundation.IAsyncOperation`1<Windows.AI.MachineLearning.LearningModel> Windows.AI.MachineLearning.LearningModel::LoadFromStreamAsync(Windows.Storage.Streams.IRandomAccessStreamReference)
83
+ def load_from_stream_async(cls, model_stream: windows_storage_streams.IRandomAccessStreamReference, /) -> windows_foundation.IAsyncOperation[LearningModel]: ...
84
+ # Windows.AI.MachineLearning.LearningModel Windows.AI.MachineLearning.LearningModel::LoadFromStream(Windows.Storage.Streams.IRandomAccessStreamReference,Windows.AI.MachineLearning.ILearningModelOperatorProvider)
85
+ def load_from_stream_with_operator_provider(cls, model_stream: windows_storage_streams.IRandomAccessStreamReference, operator_provider: ILearningModelOperatorProvider, /) -> LearningModel: ...
86
+ # Windows.Foundation.IAsyncOperation`1<Windows.AI.MachineLearning.LearningModel> Windows.AI.MachineLearning.LearningModel::LoadFromStreamAsync(Windows.Storage.Streams.IRandomAccessStreamReference,Windows.AI.MachineLearning.ILearningModelOperatorProvider)
87
+ def load_from_stream_with_operator_provider_async(cls, model_stream: windows_storage_streams.IRandomAccessStreamReference, operator_provider: ILearningModelOperatorProvider, /) -> windows_foundation.IAsyncOperation[LearningModel]: ...
88
+
89
+ @typing.final
90
+ class LearningModel(winrt.system.Object, windows_foundation.IClosable, metaclass=LearningModel_Static):
91
+ def __enter__(self: Self) -> Self: ...
92
+ def __exit__(self, exc_type: typing.Optional[typing.Type[BaseException]], exc_value: typing.Optional[BaseException], traceback: typing.Optional[types.TracebackType]) -> None: ...
93
+ # System.Void Windows.AI.MachineLearning.LearningModel::Close()
94
+ def close(self) -> None: ...
95
+ # System.String Windows.AI.MachineLearning.LearningModel::get_Author()
96
+ @_property
97
+ def author(self) -> str: ...
98
+ # System.String Windows.AI.MachineLearning.LearningModel::get_Description()
99
+ @_property
100
+ def description(self) -> str: ...
101
+ # System.String Windows.AI.MachineLearning.LearningModel::get_Domain()
102
+ @_property
103
+ def domain(self) -> str: ...
104
+ # Windows.Foundation.Collections.IVectorView`1<Windows.AI.MachineLearning.ILearningModelFeatureDescriptor> Windows.AI.MachineLearning.LearningModel::get_InputFeatures()
105
+ @_property
106
+ def input_features(self) -> typing.Sequence[ILearningModelFeatureDescriptor]: ...
107
+ # Windows.Foundation.Collections.IMapView`2<System.String,System.String> Windows.AI.MachineLearning.LearningModel::get_Metadata()
108
+ @_property
109
+ def metadata(self) -> typing.Mapping[str, str]: ...
110
+ # System.String Windows.AI.MachineLearning.LearningModel::get_Name()
111
+ @_property
112
+ def name(self) -> str: ...
113
+ # Windows.Foundation.Collections.IVectorView`1<Windows.AI.MachineLearning.ILearningModelFeatureDescriptor> Windows.AI.MachineLearning.LearningModel::get_OutputFeatures()
114
+ @_property
115
+ def output_features(self) -> typing.Sequence[ILearningModelFeatureDescriptor]: ...
116
+ # System.Int64 Windows.AI.MachineLearning.LearningModel::get_Version()
117
+ @_property
118
+ def version(self) -> winrt.system.Int64: ...
119
+
120
+ @typing.final
121
+ class LearningModelBinding(winrt.system.Object, winrt._winrt.Mapping[str, winrt.system.Object]):
122
+ def __len__(self) -> int: ...
123
+ def __iter__(self) -> typing.Iterator[str]: ...
124
+ def __contains__(self, key: object) -> bool: ...
125
+ def __getitem__(self, key: str) -> winrt.system.Object: ...
126
+ def __new__(cls: typing.Type[Self], session: LearningModelSession) -> Self: ...
127
+ # System.Void Windows.AI.MachineLearning.LearningModelBinding::Bind(System.String,System.Object)
128
+ def bind(self, name: str, value: winrt.system.Object, /) -> None: ...
129
+ # System.Void Windows.AI.MachineLearning.LearningModelBinding::Bind(System.String,System.Object,Windows.Foundation.Collections.IPropertySet)
130
+ def bind_with_properties(self, name: str, value: winrt.system.Object, props: windows_foundation_collections.IPropertySet, /) -> None: ...
131
+ # System.Void Windows.AI.MachineLearning.LearningModelBinding::Clear()
132
+ def clear(self) -> None: ...
133
+ # Windows.Foundation.Collections.IIterator`1<Windows.Foundation.Collections.IKeyValuePair`2<System.String,System.Object>> Windows.AI.MachineLearning.LearningModelBinding::First()
134
+ def first(self) -> windows_foundation_collections.IIterator[windows_foundation_collections.IKeyValuePair[str, winrt.system.Object]]: ...
135
+ # System.Boolean Windows.AI.MachineLearning.LearningModelBinding::HasKey(System.String)
136
+ def has_key(self, key: str, /) -> bool: ...
137
+ # System.Object Windows.AI.MachineLearning.LearningModelBinding::Lookup(System.String)
138
+ def lookup(self, key: str, /) -> winrt.system.Object: ...
139
+ # 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>&)
140
+ def split(self) -> typing.Tuple[typing.Mapping[str, winrt.system.Object], typing.Mapping[str, winrt.system.Object]]: ...
141
+ # System.UInt32 Windows.AI.MachineLearning.LearningModelBinding::get_Size()
142
+ @_property
143
+ def size(self) -> winrt.system.UInt32: ...
144
+
145
+ @typing.final
146
+ class LearningModelDevice_Static(winrt._winrt.IInspectable_Static):
147
+ # Windows.AI.MachineLearning.LearningModelDevice Windows.AI.MachineLearning.LearningModelDevice::CreateFromDirect3D11Device(Windows.Graphics.DirectX.Direct3D11.IDirect3DDevice)
148
+ def create_from_direct3d11_device(cls, device: windows_graphics_directx_direct3d11.IDirect3DDevice, /) -> LearningModelDevice: ...
149
+
150
+ @typing.final
151
+ class LearningModelDevice(winrt.system.Object, metaclass=LearningModelDevice_Static):
152
+ def __new__(cls: typing.Type[Self], device_kind: LearningModelDeviceKind) -> Self: ...
153
+ # Windows.Graphics.DisplayAdapterId Windows.AI.MachineLearning.LearningModelDevice::get_AdapterId()
154
+ @_property
155
+ def adapter_id(self) -> windows_graphics.DisplayAdapterId: ...
156
+ # Windows.Graphics.DirectX.Direct3D11.IDirect3DDevice Windows.AI.MachineLearning.LearningModelDevice::get_Direct3D11Device()
157
+ @_property
158
+ def direct3d11_device(self) -> windows_graphics_directx_direct3d11.IDirect3DDevice: ...
159
+
160
+ @typing.final
161
+ class LearningModelEvaluationResult(winrt.system.Object):
162
+ # System.String Windows.AI.MachineLearning.LearningModelEvaluationResult::get_CorrelationId()
163
+ @_property
164
+ def correlation_id(self) -> str: ...
165
+ # System.Int32 Windows.AI.MachineLearning.LearningModelEvaluationResult::get_ErrorStatus()
166
+ @_property
167
+ def error_status(self) -> winrt.system.Int32: ...
168
+ # Windows.Foundation.Collections.IMapView`2<System.String,System.Object> Windows.AI.MachineLearning.LearningModelEvaluationResult::get_Outputs()
169
+ @_property
170
+ def outputs(self) -> typing.Mapping[str, winrt.system.Object]: ...
171
+ # System.Boolean Windows.AI.MachineLearning.LearningModelEvaluationResult::get_Succeeded()
172
+ @_property
173
+ def succeeded(self) -> bool: ...
174
+
175
+ @typing.final
176
+ class LearningModelSession(winrt.system.Object, windows_foundation.IClosable):
177
+ def __enter__(self: Self) -> Self: ...
178
+ def __exit__(self, exc_type: typing.Optional[typing.Type[BaseException]], exc_value: typing.Optional[BaseException], traceback: typing.Optional[types.TracebackType]) -> None: ...
179
+ @typing.overload
180
+ def __new__(cls: typing.Type[Self], model: LearningModel, device_to_run_on: LearningModelDevice, learning_model_session_options: LearningModelSessionOptions) -> Self: ...
181
+ @typing.overload
182
+ def __new__(cls: typing.Type[Self], model: LearningModel) -> Self: ...
183
+ @typing.overload
184
+ def __new__(cls: typing.Type[Self], model: LearningModel, device_to_run_on: LearningModelDevice) -> Self: ...
185
+ # System.Void Windows.AI.MachineLearning.LearningModelSession::Close()
186
+ def close(self) -> None: ...
187
+ # Windows.AI.MachineLearning.LearningModelEvaluationResult Windows.AI.MachineLearning.LearningModelSession::Evaluate(Windows.AI.MachineLearning.LearningModelBinding,System.String)
188
+ def evaluate(self, bindings: LearningModelBinding, correlation_id: str, /) -> LearningModelEvaluationResult: ...
189
+ # Windows.Foundation.IAsyncOperation`1<Windows.AI.MachineLearning.LearningModelEvaluationResult> Windows.AI.MachineLearning.LearningModelSession::EvaluateAsync(Windows.AI.MachineLearning.LearningModelBinding,System.String)
190
+ def evaluate_async(self, bindings: LearningModelBinding, correlation_id: str, /) -> windows_foundation.IAsyncOperation[LearningModelEvaluationResult]: ...
191
+ # Windows.AI.MachineLearning.LearningModelEvaluationResult Windows.AI.MachineLearning.LearningModelSession::EvaluateFeatures(Windows.Foundation.Collections.IMap`2<System.String,System.Object>,System.String)
192
+ def evaluate_features(self, features: typing.MutableMapping[str, winrt.system.Object], correlation_id: str, /) -> LearningModelEvaluationResult: ...
193
+ # Windows.Foundation.IAsyncOperation`1<Windows.AI.MachineLearning.LearningModelEvaluationResult> Windows.AI.MachineLearning.LearningModelSession::EvaluateFeaturesAsync(Windows.Foundation.Collections.IMap`2<System.String,System.Object>,System.String)
194
+ def evaluate_features_async(self, features: typing.MutableMapping[str, winrt.system.Object], correlation_id: str, /) -> windows_foundation.IAsyncOperation[LearningModelEvaluationResult]: ...
195
+ # Windows.AI.MachineLearning.LearningModelDevice Windows.AI.MachineLearning.LearningModelSession::get_Device()
196
+ @_property
197
+ def device(self) -> LearningModelDevice: ...
198
+ # Windows.Foundation.Collections.IPropertySet Windows.AI.MachineLearning.LearningModelSession::get_EvaluationProperties()
199
+ @_property
200
+ def evaluation_properties(self) -> windows_foundation_collections.IPropertySet: ...
201
+ # Windows.AI.MachineLearning.LearningModel Windows.AI.MachineLearning.LearningModelSession::get_Model()
202
+ @_property
203
+ def model(self) -> LearningModel: ...
204
+
205
+ @typing.final
206
+ class LearningModelSessionOptions(winrt.system.Object):
207
+ def __new__(cls: typing.Type[Self]) -> Self: ...
208
+ # System.Void Windows.AI.MachineLearning.LearningModelSessionOptions::OverrideNamedDimension(System.String,System.UInt32)
209
+ def override_named_dimension(self, name: str, dimension: winrt.system.UInt32, /) -> None: ...
210
+ # System.UInt32 Windows.AI.MachineLearning.LearningModelSessionOptions::get_BatchSizeOverride()
211
+ @_property
212
+ def batch_size_override(self) -> winrt.system.UInt32: ...
213
+ # System.Void Windows.AI.MachineLearning.LearningModelSessionOptions::put_BatchSizeOverride(System.UInt32)
214
+ @batch_size_override.setter
215
+ def batch_size_override(self, value: winrt.system.UInt32) -> None: ...
216
+ # System.Boolean Windows.AI.MachineLearning.LearningModelSessionOptions::get_CloseModelOnSessionCreation()
217
+ @_property
218
+ def close_model_on_session_creation(self) -> bool: ...
219
+ # System.Void Windows.AI.MachineLearning.LearningModelSessionOptions::put_CloseModelOnSessionCreation(System.Boolean)
220
+ @close_model_on_session_creation.setter
221
+ def close_model_on_session_creation(self, value: bool) -> None: ...
222
+
223
+ @typing.final
224
+ class MapFeatureDescriptor(winrt.system.Object, ILearningModelFeatureDescriptor):
225
+ # System.String Windows.AI.MachineLearning.MapFeatureDescriptor::get_Description()
226
+ @_property
227
+ def description(self) -> str: ...
228
+ # System.Boolean Windows.AI.MachineLearning.MapFeatureDescriptor::get_IsRequired()
229
+ @_property
230
+ def is_required(self) -> bool: ...
231
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.MapFeatureDescriptor::get_Kind()
232
+ @_property
233
+ def kind(self) -> LearningModelFeatureKind: ...
234
+ # System.String Windows.AI.MachineLearning.MapFeatureDescriptor::get_Name()
235
+ @_property
236
+ def name(self) -> str: ...
237
+ # Windows.AI.MachineLearning.TensorKind Windows.AI.MachineLearning.MapFeatureDescriptor::get_KeyKind()
238
+ @_property
239
+ def key_kind(self) -> TensorKind: ...
240
+ # Windows.AI.MachineLearning.ILearningModelFeatureDescriptor Windows.AI.MachineLearning.MapFeatureDescriptor::get_ValueDescriptor()
241
+ @_property
242
+ def value_descriptor(self) -> ILearningModelFeatureDescriptor: ...
243
+
244
+ @typing.final
245
+ class SequenceFeatureDescriptor(winrt.system.Object, ILearningModelFeatureDescriptor):
246
+ # System.String Windows.AI.MachineLearning.SequenceFeatureDescriptor::get_Description()
247
+ @_property
248
+ def description(self) -> str: ...
249
+ # System.Boolean Windows.AI.MachineLearning.SequenceFeatureDescriptor::get_IsRequired()
250
+ @_property
251
+ def is_required(self) -> bool: ...
252
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.SequenceFeatureDescriptor::get_Kind()
253
+ @_property
254
+ def kind(self) -> LearningModelFeatureKind: ...
255
+ # System.String Windows.AI.MachineLearning.SequenceFeatureDescriptor::get_Name()
256
+ @_property
257
+ def name(self) -> str: ...
258
+ # Windows.AI.MachineLearning.ILearningModelFeatureDescriptor Windows.AI.MachineLearning.SequenceFeatureDescriptor::get_ElementDescriptor()
259
+ @_property
260
+ def element_descriptor(self) -> ILearningModelFeatureDescriptor: ...
261
+
262
+ @typing.final
263
+ class TensorBoolean_Static(winrt._winrt.IInspectable_Static):
264
+ # Windows.AI.MachineLearning.TensorBoolean Windows.AI.MachineLearning.TensorBoolean::Create()
265
+ def create(cls) -> TensorBoolean: ...
266
+ # Windows.AI.MachineLearning.TensorBoolean Windows.AI.MachineLearning.TensorBoolean::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
267
+ def create2(cls, shape: typing.Iterable[winrt.system.Int64], /) -> TensorBoolean: ...
268
+ # Windows.AI.MachineLearning.TensorBoolean Windows.AI.MachineLearning.TensorBoolean::CreateFromArray(Windows.Foundation.Collections.IIterable`1<System.Int64>,System.Boolean[])
269
+ def create_from_array(cls, shape: typing.Iterable[winrt.system.Int64], data: typing.Union[winrt.system.Array[bool], winrt.system.ReadableBuffer], /) -> TensorBoolean: ...
270
+ # Windows.AI.MachineLearning.TensorBoolean Windows.AI.MachineLearning.TensorBoolean::CreateFromBuffer(System.Int64[],Windows.Storage.Streams.IBuffer)
271
+ def create_from_buffer(cls, shape: typing.Union[winrt.system.Array[winrt.system.Int64], winrt.system.ReadableBuffer], buffer: winrt.system.Buffer, /) -> TensorBoolean: ...
272
+ # Windows.AI.MachineLearning.TensorBoolean Windows.AI.MachineLearning.TensorBoolean::CreateFromIterable(Windows.Foundation.Collections.IIterable`1<System.Int64>,Windows.Foundation.Collections.IIterable`1<System.Boolean>)
273
+ def create_from_iterable(cls, shape: typing.Iterable[winrt.system.Int64], data: typing.Iterable[bool], /) -> TensorBoolean: ...
274
+ # Windows.AI.MachineLearning.TensorBoolean Windows.AI.MachineLearning.TensorBoolean::CreateFromShapeArrayAndDataArray(System.Int64[],System.Boolean[])
275
+ def create_from_shape_array_and_data_array(cls, shape: typing.Union[winrt.system.Array[winrt.system.Int64], winrt.system.ReadableBuffer], data: typing.Union[winrt.system.Array[bool], winrt.system.ReadableBuffer], /) -> TensorBoolean: ...
276
+
277
+ @typing.final
278
+ class TensorBoolean(winrt.system.Object, windows_foundation.IMemoryBuffer, windows_foundation.IClosable, ITensor, ILearningModelFeatureValue, metaclass=TensorBoolean_Static):
279
+ def __enter__(self: Self) -> Self: ...
280
+ def __exit__(self, exc_type: typing.Optional[typing.Type[BaseException]], exc_value: typing.Optional[BaseException], traceback: typing.Optional[types.TracebackType]) -> None: ...
281
+ # System.Void Windows.AI.MachineLearning.TensorBoolean::Close()
282
+ def close(self) -> None: ...
283
+ # Windows.Foundation.IMemoryBufferReference Windows.AI.MachineLearning.TensorBoolean::CreateReference()
284
+ def create_reference(self) -> windows_foundation.IMemoryBufferReference: ...
285
+ # Windows.Foundation.Collections.IVectorView`1<System.Boolean> Windows.AI.MachineLearning.TensorBoolean::GetAsVectorView()
286
+ def get_as_vector_view(self) -> typing.Sequence[bool]: ...
287
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.TensorBoolean::get_Kind()
288
+ @_property
289
+ def kind(self) -> LearningModelFeatureKind: ...
290
+ # Windows.Foundation.Collections.IVectorView`1<System.Int64> Windows.AI.MachineLearning.TensorBoolean::get_Shape()
291
+ @_property
292
+ def shape(self) -> typing.Sequence[winrt.system.Int64]: ...
293
+ # Windows.AI.MachineLearning.TensorKind Windows.AI.MachineLearning.TensorBoolean::get_TensorKind()
294
+ @_property
295
+ def tensor_kind(self) -> TensorKind: ...
296
+
297
+ @typing.final
298
+ class TensorDouble_Static(winrt._winrt.IInspectable_Static):
299
+ # Windows.AI.MachineLearning.TensorDouble Windows.AI.MachineLearning.TensorDouble::Create()
300
+ def create(cls) -> TensorDouble: ...
301
+ # Windows.AI.MachineLearning.TensorDouble Windows.AI.MachineLearning.TensorDouble::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
302
+ def create2(cls, shape: typing.Iterable[winrt.system.Int64], /) -> TensorDouble: ...
303
+ # Windows.AI.MachineLearning.TensorDouble Windows.AI.MachineLearning.TensorDouble::CreateFromArray(Windows.Foundation.Collections.IIterable`1<System.Int64>,System.Double[])
304
+ def create_from_array(cls, shape: typing.Iterable[winrt.system.Int64], data: typing.Union[winrt.system.Array[winrt.system.Double], winrt.system.ReadableBuffer], /) -> TensorDouble: ...
305
+ # Windows.AI.MachineLearning.TensorDouble Windows.AI.MachineLearning.TensorDouble::CreateFromBuffer(System.Int64[],Windows.Storage.Streams.IBuffer)
306
+ def create_from_buffer(cls, shape: typing.Union[winrt.system.Array[winrt.system.Int64], winrt.system.ReadableBuffer], buffer: winrt.system.Buffer, /) -> TensorDouble: ...
307
+ # Windows.AI.MachineLearning.TensorDouble Windows.AI.MachineLearning.TensorDouble::CreateFromIterable(Windows.Foundation.Collections.IIterable`1<System.Int64>,Windows.Foundation.Collections.IIterable`1<System.Double>)
308
+ def create_from_iterable(cls, shape: typing.Iterable[winrt.system.Int64], data: typing.Iterable[winrt.system.Double], /) -> TensorDouble: ...
309
+ # Windows.AI.MachineLearning.TensorDouble Windows.AI.MachineLearning.TensorDouble::CreateFromShapeArrayAndDataArray(System.Int64[],System.Double[])
310
+ def create_from_shape_array_and_data_array(cls, shape: typing.Union[winrt.system.Array[winrt.system.Int64], winrt.system.ReadableBuffer], data: typing.Union[winrt.system.Array[winrt.system.Double], winrt.system.ReadableBuffer], /) -> TensorDouble: ...
311
+
312
+ @typing.final
313
+ class TensorDouble(winrt.system.Object, windows_foundation.IMemoryBuffer, windows_foundation.IClosable, ITensor, ILearningModelFeatureValue, metaclass=TensorDouble_Static):
314
+ def __enter__(self: Self) -> Self: ...
315
+ def __exit__(self, exc_type: typing.Optional[typing.Type[BaseException]], exc_value: typing.Optional[BaseException], traceback: typing.Optional[types.TracebackType]) -> None: ...
316
+ # System.Void Windows.AI.MachineLearning.TensorDouble::Close()
317
+ def close(self) -> None: ...
318
+ # Windows.Foundation.IMemoryBufferReference Windows.AI.MachineLearning.TensorDouble::CreateReference()
319
+ def create_reference(self) -> windows_foundation.IMemoryBufferReference: ...
320
+ # Windows.Foundation.Collections.IVectorView`1<System.Double> Windows.AI.MachineLearning.TensorDouble::GetAsVectorView()
321
+ def get_as_vector_view(self) -> typing.Sequence[winrt.system.Double]: ...
322
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.TensorDouble::get_Kind()
323
+ @_property
324
+ def kind(self) -> LearningModelFeatureKind: ...
325
+ # Windows.Foundation.Collections.IVectorView`1<System.Int64> Windows.AI.MachineLearning.TensorDouble::get_Shape()
326
+ @_property
327
+ def shape(self) -> typing.Sequence[winrt.system.Int64]: ...
328
+ # Windows.AI.MachineLearning.TensorKind Windows.AI.MachineLearning.TensorDouble::get_TensorKind()
329
+ @_property
330
+ def tensor_kind(self) -> TensorKind: ...
331
+
332
+ @typing.final
333
+ class TensorFeatureDescriptor(winrt.system.Object, ILearningModelFeatureDescriptor):
334
+ # System.String Windows.AI.MachineLearning.TensorFeatureDescriptor::get_Description()
335
+ @_property
336
+ def description(self) -> str: ...
337
+ # System.Boolean Windows.AI.MachineLearning.TensorFeatureDescriptor::get_IsRequired()
338
+ @_property
339
+ def is_required(self) -> bool: ...
340
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.TensorFeatureDescriptor::get_Kind()
341
+ @_property
342
+ def kind(self) -> LearningModelFeatureKind: ...
343
+ # System.String Windows.AI.MachineLearning.TensorFeatureDescriptor::get_Name()
344
+ @_property
345
+ def name(self) -> str: ...
346
+ # Windows.Foundation.Collections.IVectorView`1<System.Int64> Windows.AI.MachineLearning.TensorFeatureDescriptor::get_Shape()
347
+ @_property
348
+ def shape(self) -> typing.Sequence[winrt.system.Int64]: ...
349
+ # Windows.AI.MachineLearning.TensorKind Windows.AI.MachineLearning.TensorFeatureDescriptor::get_TensorKind()
350
+ @_property
351
+ def tensor_kind(self) -> TensorKind: ...
352
+
353
+ @typing.final
354
+ class TensorFloat_Static(winrt._winrt.IInspectable_Static):
355
+ # Windows.AI.MachineLearning.TensorFloat Windows.AI.MachineLearning.TensorFloat::Create()
356
+ def create(cls) -> TensorFloat: ...
357
+ # Windows.AI.MachineLearning.TensorFloat Windows.AI.MachineLearning.TensorFloat::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
358
+ def create2(cls, shape: typing.Iterable[winrt.system.Int64], /) -> TensorFloat: ...
359
+ # Windows.AI.MachineLearning.TensorFloat Windows.AI.MachineLearning.TensorFloat::CreateFromArray(Windows.Foundation.Collections.IIterable`1<System.Int64>,System.Single[])
360
+ def create_from_array(cls, shape: typing.Iterable[winrt.system.Int64], data: typing.Union[winrt.system.Array[winrt.system.Single], winrt.system.ReadableBuffer], /) -> TensorFloat: ...
361
+ # Windows.AI.MachineLearning.TensorFloat Windows.AI.MachineLearning.TensorFloat::CreateFromBuffer(System.Int64[],Windows.Storage.Streams.IBuffer)
362
+ def create_from_buffer(cls, shape: typing.Union[winrt.system.Array[winrt.system.Int64], winrt.system.ReadableBuffer], buffer: winrt.system.Buffer, /) -> TensorFloat: ...
363
+ # Windows.AI.MachineLearning.TensorFloat Windows.AI.MachineLearning.TensorFloat::CreateFromIterable(Windows.Foundation.Collections.IIterable`1<System.Int64>,Windows.Foundation.Collections.IIterable`1<System.Single>)
364
+ def create_from_iterable(cls, shape: typing.Iterable[winrt.system.Int64], data: typing.Iterable[winrt.system.Single], /) -> TensorFloat: ...
365
+ # Windows.AI.MachineLearning.TensorFloat Windows.AI.MachineLearning.TensorFloat::CreateFromShapeArrayAndDataArray(System.Int64[],System.Single[])
366
+ def create_from_shape_array_and_data_array(cls, shape: typing.Union[winrt.system.Array[winrt.system.Int64], winrt.system.ReadableBuffer], data: typing.Union[winrt.system.Array[winrt.system.Single], winrt.system.ReadableBuffer], /) -> TensorFloat: ...
367
+
368
+ @typing.final
369
+ class TensorFloat(winrt.system.Object, windows_foundation.IMemoryBuffer, windows_foundation.IClosable, ITensor, ILearningModelFeatureValue, metaclass=TensorFloat_Static):
370
+ def __enter__(self: Self) -> Self: ...
371
+ def __exit__(self, exc_type: typing.Optional[typing.Type[BaseException]], exc_value: typing.Optional[BaseException], traceback: typing.Optional[types.TracebackType]) -> None: ...
372
+ # System.Void Windows.AI.MachineLearning.TensorFloat::Close()
373
+ def close(self) -> None: ...
374
+ # Windows.Foundation.IMemoryBufferReference Windows.AI.MachineLearning.TensorFloat::CreateReference()
375
+ def create_reference(self) -> windows_foundation.IMemoryBufferReference: ...
376
+ # Windows.Foundation.Collections.IVectorView`1<System.Single> Windows.AI.MachineLearning.TensorFloat::GetAsVectorView()
377
+ def get_as_vector_view(self) -> typing.Sequence[winrt.system.Single]: ...
378
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.TensorFloat::get_Kind()
379
+ @_property
380
+ def kind(self) -> LearningModelFeatureKind: ...
381
+ # Windows.Foundation.Collections.IVectorView`1<System.Int64> Windows.AI.MachineLearning.TensorFloat::get_Shape()
382
+ @_property
383
+ def shape(self) -> typing.Sequence[winrt.system.Int64]: ...
384
+ # Windows.AI.MachineLearning.TensorKind Windows.AI.MachineLearning.TensorFloat::get_TensorKind()
385
+ @_property
386
+ def tensor_kind(self) -> TensorKind: ...
387
+
388
+ @typing.final
389
+ class TensorFloat16Bit_Static(winrt._winrt.IInspectable_Static):
390
+ # Windows.AI.MachineLearning.TensorFloat16Bit Windows.AI.MachineLearning.TensorFloat16Bit::Create()
391
+ def create(cls) -> TensorFloat16Bit: ...
392
+ # Windows.AI.MachineLearning.TensorFloat16Bit Windows.AI.MachineLearning.TensorFloat16Bit::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
393
+ def create2(cls, shape: typing.Iterable[winrt.system.Int64], /) -> TensorFloat16Bit: ...
394
+ # Windows.AI.MachineLearning.TensorFloat16Bit Windows.AI.MachineLearning.TensorFloat16Bit::CreateFromArray(Windows.Foundation.Collections.IIterable`1<System.Int64>,System.Single[])
395
+ def create_from_array(cls, shape: typing.Iterable[winrt.system.Int64], data: typing.Union[winrt.system.Array[winrt.system.Single], winrt.system.ReadableBuffer], /) -> TensorFloat16Bit: ...
396
+ # Windows.AI.MachineLearning.TensorFloat16Bit Windows.AI.MachineLearning.TensorFloat16Bit::CreateFromBuffer(System.Int64[],Windows.Storage.Streams.IBuffer)
397
+ def create_from_buffer(cls, shape: typing.Union[winrt.system.Array[winrt.system.Int64], winrt.system.ReadableBuffer], buffer: winrt.system.Buffer, /) -> TensorFloat16Bit: ...
398
+ # Windows.AI.MachineLearning.TensorFloat16Bit Windows.AI.MachineLearning.TensorFloat16Bit::CreateFromIterable(Windows.Foundation.Collections.IIterable`1<System.Int64>,Windows.Foundation.Collections.IIterable`1<System.Single>)
399
+ def create_from_iterable(cls, shape: typing.Iterable[winrt.system.Int64], data: typing.Iterable[winrt.system.Single], /) -> TensorFloat16Bit: ...
400
+ # Windows.AI.MachineLearning.TensorFloat16Bit Windows.AI.MachineLearning.TensorFloat16Bit::CreateFromShapeArrayAndDataArray(System.Int64[],System.Single[])
401
+ def create_from_shape_array_and_data_array(cls, shape: typing.Union[winrt.system.Array[winrt.system.Int64], winrt.system.ReadableBuffer], data: typing.Union[winrt.system.Array[winrt.system.Single], winrt.system.ReadableBuffer], /) -> TensorFloat16Bit: ...
402
+
403
+ @typing.final
404
+ class TensorFloat16Bit(winrt.system.Object, windows_foundation.IMemoryBuffer, windows_foundation.IClosable, ITensor, ILearningModelFeatureValue, metaclass=TensorFloat16Bit_Static):
405
+ def __enter__(self: Self) -> Self: ...
406
+ def __exit__(self, exc_type: typing.Optional[typing.Type[BaseException]], exc_value: typing.Optional[BaseException], traceback: typing.Optional[types.TracebackType]) -> None: ...
407
+ # System.Void Windows.AI.MachineLearning.TensorFloat16Bit::Close()
408
+ def close(self) -> None: ...
409
+ # Windows.Foundation.IMemoryBufferReference Windows.AI.MachineLearning.TensorFloat16Bit::CreateReference()
410
+ def create_reference(self) -> windows_foundation.IMemoryBufferReference: ...
411
+ # Windows.Foundation.Collections.IVectorView`1<System.Single> Windows.AI.MachineLearning.TensorFloat16Bit::GetAsVectorView()
412
+ def get_as_vector_view(self) -> typing.Sequence[winrt.system.Single]: ...
413
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.TensorFloat16Bit::get_Kind()
414
+ @_property
415
+ def kind(self) -> LearningModelFeatureKind: ...
416
+ # Windows.Foundation.Collections.IVectorView`1<System.Int64> Windows.AI.MachineLearning.TensorFloat16Bit::get_Shape()
417
+ @_property
418
+ def shape(self) -> typing.Sequence[winrt.system.Int64]: ...
419
+ # Windows.AI.MachineLearning.TensorKind Windows.AI.MachineLearning.TensorFloat16Bit::get_TensorKind()
420
+ @_property
421
+ def tensor_kind(self) -> TensorKind: ...
422
+
423
+ @typing.final
424
+ class TensorInt16Bit_Static(winrt._winrt.IInspectable_Static):
425
+ # Windows.AI.MachineLearning.TensorInt16Bit Windows.AI.MachineLearning.TensorInt16Bit::Create()
426
+ def create(cls) -> TensorInt16Bit: ...
427
+ # Windows.AI.MachineLearning.TensorInt16Bit Windows.AI.MachineLearning.TensorInt16Bit::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
428
+ def create2(cls, shape: typing.Iterable[winrt.system.Int64], /) -> TensorInt16Bit: ...
429
+ # Windows.AI.MachineLearning.TensorInt16Bit Windows.AI.MachineLearning.TensorInt16Bit::CreateFromArray(Windows.Foundation.Collections.IIterable`1<System.Int64>,System.Int16[])
430
+ def create_from_array(cls, shape: typing.Iterable[winrt.system.Int64], data: typing.Union[winrt.system.Array[winrt.system.Int16], winrt.system.ReadableBuffer], /) -> TensorInt16Bit: ...
431
+ # Windows.AI.MachineLearning.TensorInt16Bit Windows.AI.MachineLearning.TensorInt16Bit::CreateFromBuffer(System.Int64[],Windows.Storage.Streams.IBuffer)
432
+ def create_from_buffer(cls, shape: typing.Union[winrt.system.Array[winrt.system.Int64], winrt.system.ReadableBuffer], buffer: winrt.system.Buffer, /) -> TensorInt16Bit: ...
433
+ # Windows.AI.MachineLearning.TensorInt16Bit Windows.AI.MachineLearning.TensorInt16Bit::CreateFromIterable(Windows.Foundation.Collections.IIterable`1<System.Int64>,Windows.Foundation.Collections.IIterable`1<System.Int16>)
434
+ def create_from_iterable(cls, shape: typing.Iterable[winrt.system.Int64], data: typing.Iterable[winrt.system.Int16], /) -> TensorInt16Bit: ...
435
+ # Windows.AI.MachineLearning.TensorInt16Bit Windows.AI.MachineLearning.TensorInt16Bit::CreateFromShapeArrayAndDataArray(System.Int64[],System.Int16[])
436
+ def create_from_shape_array_and_data_array(cls, shape: typing.Union[winrt.system.Array[winrt.system.Int64], winrt.system.ReadableBuffer], data: typing.Union[winrt.system.Array[winrt.system.Int16], winrt.system.ReadableBuffer], /) -> TensorInt16Bit: ...
437
+
438
+ @typing.final
439
+ class TensorInt16Bit(winrt.system.Object, windows_foundation.IMemoryBuffer, windows_foundation.IClosable, ITensor, ILearningModelFeatureValue, metaclass=TensorInt16Bit_Static):
440
+ def __enter__(self: Self) -> Self: ...
441
+ def __exit__(self, exc_type: typing.Optional[typing.Type[BaseException]], exc_value: typing.Optional[BaseException], traceback: typing.Optional[types.TracebackType]) -> None: ...
442
+ # System.Void Windows.AI.MachineLearning.TensorInt16Bit::Close()
443
+ def close(self) -> None: ...
444
+ # Windows.Foundation.IMemoryBufferReference Windows.AI.MachineLearning.TensorInt16Bit::CreateReference()
445
+ def create_reference(self) -> windows_foundation.IMemoryBufferReference: ...
446
+ # Windows.Foundation.Collections.IVectorView`1<System.Int16> Windows.AI.MachineLearning.TensorInt16Bit::GetAsVectorView()
447
+ def get_as_vector_view(self) -> typing.Sequence[winrt.system.Int16]: ...
448
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.TensorInt16Bit::get_Kind()
449
+ @_property
450
+ def kind(self) -> LearningModelFeatureKind: ...
451
+ # Windows.Foundation.Collections.IVectorView`1<System.Int64> Windows.AI.MachineLearning.TensorInt16Bit::get_Shape()
452
+ @_property
453
+ def shape(self) -> typing.Sequence[winrt.system.Int64]: ...
454
+ # Windows.AI.MachineLearning.TensorKind Windows.AI.MachineLearning.TensorInt16Bit::get_TensorKind()
455
+ @_property
456
+ def tensor_kind(self) -> TensorKind: ...
457
+
458
+ @typing.final
459
+ class TensorInt32Bit_Static(winrt._winrt.IInspectable_Static):
460
+ # Windows.AI.MachineLearning.TensorInt32Bit Windows.AI.MachineLearning.TensorInt32Bit::Create()
461
+ def create(cls) -> TensorInt32Bit: ...
462
+ # Windows.AI.MachineLearning.TensorInt32Bit Windows.AI.MachineLearning.TensorInt32Bit::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
463
+ def create2(cls, shape: typing.Iterable[winrt.system.Int64], /) -> TensorInt32Bit: ...
464
+ # Windows.AI.MachineLearning.TensorInt32Bit Windows.AI.MachineLearning.TensorInt32Bit::CreateFromArray(Windows.Foundation.Collections.IIterable`1<System.Int64>,System.Int32[])
465
+ def create_from_array(cls, shape: typing.Iterable[winrt.system.Int64], data: typing.Union[winrt.system.Array[winrt.system.Int32], winrt.system.ReadableBuffer], /) -> TensorInt32Bit: ...
466
+ # Windows.AI.MachineLearning.TensorInt32Bit Windows.AI.MachineLearning.TensorInt32Bit::CreateFromBuffer(System.Int64[],Windows.Storage.Streams.IBuffer)
467
+ def create_from_buffer(cls, shape: typing.Union[winrt.system.Array[winrt.system.Int64], winrt.system.ReadableBuffer], buffer: winrt.system.Buffer, /) -> TensorInt32Bit: ...
468
+ # Windows.AI.MachineLearning.TensorInt32Bit Windows.AI.MachineLearning.TensorInt32Bit::CreateFromIterable(Windows.Foundation.Collections.IIterable`1<System.Int64>,Windows.Foundation.Collections.IIterable`1<System.Int32>)
469
+ def create_from_iterable(cls, shape: typing.Iterable[winrt.system.Int64], data: typing.Iterable[winrt.system.Int32], /) -> TensorInt32Bit: ...
470
+ # Windows.AI.MachineLearning.TensorInt32Bit Windows.AI.MachineLearning.TensorInt32Bit::CreateFromShapeArrayAndDataArray(System.Int64[],System.Int32[])
471
+ def create_from_shape_array_and_data_array(cls, shape: typing.Union[winrt.system.Array[winrt.system.Int64], winrt.system.ReadableBuffer], data: typing.Union[winrt.system.Array[winrt.system.Int32], winrt.system.ReadableBuffer], /) -> TensorInt32Bit: ...
472
+
473
+ @typing.final
474
+ class TensorInt32Bit(winrt.system.Object, windows_foundation.IMemoryBuffer, windows_foundation.IClosable, ITensor, ILearningModelFeatureValue, metaclass=TensorInt32Bit_Static):
475
+ def __enter__(self: Self) -> Self: ...
476
+ def __exit__(self, exc_type: typing.Optional[typing.Type[BaseException]], exc_value: typing.Optional[BaseException], traceback: typing.Optional[types.TracebackType]) -> None: ...
477
+ # System.Void Windows.AI.MachineLearning.TensorInt32Bit::Close()
478
+ def close(self) -> None: ...
479
+ # Windows.Foundation.IMemoryBufferReference Windows.AI.MachineLearning.TensorInt32Bit::CreateReference()
480
+ def create_reference(self) -> windows_foundation.IMemoryBufferReference: ...
481
+ # Windows.Foundation.Collections.IVectorView`1<System.Int32> Windows.AI.MachineLearning.TensorInt32Bit::GetAsVectorView()
482
+ def get_as_vector_view(self) -> typing.Sequence[winrt.system.Int32]: ...
483
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.TensorInt32Bit::get_Kind()
484
+ @_property
485
+ def kind(self) -> LearningModelFeatureKind: ...
486
+ # Windows.Foundation.Collections.IVectorView`1<System.Int64> Windows.AI.MachineLearning.TensorInt32Bit::get_Shape()
487
+ @_property
488
+ def shape(self) -> typing.Sequence[winrt.system.Int64]: ...
489
+ # Windows.AI.MachineLearning.TensorKind Windows.AI.MachineLearning.TensorInt32Bit::get_TensorKind()
490
+ @_property
491
+ def tensor_kind(self) -> TensorKind: ...
492
+
493
+ @typing.final
494
+ class TensorInt64Bit_Static(winrt._winrt.IInspectable_Static):
495
+ # Windows.AI.MachineLearning.TensorInt64Bit Windows.AI.MachineLearning.TensorInt64Bit::Create()
496
+ def create(cls) -> TensorInt64Bit: ...
497
+ # Windows.AI.MachineLearning.TensorInt64Bit Windows.AI.MachineLearning.TensorInt64Bit::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
498
+ def create2(cls, shape: typing.Iterable[winrt.system.Int64], /) -> TensorInt64Bit: ...
499
+ # Windows.AI.MachineLearning.TensorInt64Bit Windows.AI.MachineLearning.TensorInt64Bit::CreateFromArray(Windows.Foundation.Collections.IIterable`1<System.Int64>,System.Int64[])
500
+ def create_from_array(cls, shape: typing.Iterable[winrt.system.Int64], data: typing.Union[winrt.system.Array[winrt.system.Int64], winrt.system.ReadableBuffer], /) -> TensorInt64Bit: ...
501
+ # Windows.AI.MachineLearning.TensorInt64Bit Windows.AI.MachineLearning.TensorInt64Bit::CreateFromBuffer(System.Int64[],Windows.Storage.Streams.IBuffer)
502
+ def create_from_buffer(cls, shape: typing.Union[winrt.system.Array[winrt.system.Int64], winrt.system.ReadableBuffer], buffer: winrt.system.Buffer, /) -> TensorInt64Bit: ...
503
+ # Windows.AI.MachineLearning.TensorInt64Bit Windows.AI.MachineLearning.TensorInt64Bit::CreateFromIterable(Windows.Foundation.Collections.IIterable`1<System.Int64>,Windows.Foundation.Collections.IIterable`1<System.Int64>)
504
+ def create_from_iterable(cls, shape: typing.Iterable[winrt.system.Int64], data: typing.Iterable[winrt.system.Int64], /) -> TensorInt64Bit: ...
505
+ # Windows.AI.MachineLearning.TensorInt64Bit Windows.AI.MachineLearning.TensorInt64Bit::CreateFromShapeArrayAndDataArray(System.Int64[],System.Int64[])
506
+ def create_from_shape_array_and_data_array(cls, shape: typing.Union[winrt.system.Array[winrt.system.Int64], winrt.system.ReadableBuffer], data: typing.Union[winrt.system.Array[winrt.system.Int64], winrt.system.ReadableBuffer], /) -> TensorInt64Bit: ...
507
+
508
+ @typing.final
509
+ class TensorInt64Bit(winrt.system.Object, windows_foundation.IMemoryBuffer, windows_foundation.IClosable, ITensor, ILearningModelFeatureValue, metaclass=TensorInt64Bit_Static):
510
+ def __enter__(self: Self) -> Self: ...
511
+ def __exit__(self, exc_type: typing.Optional[typing.Type[BaseException]], exc_value: typing.Optional[BaseException], traceback: typing.Optional[types.TracebackType]) -> None: ...
512
+ # System.Void Windows.AI.MachineLearning.TensorInt64Bit::Close()
513
+ def close(self) -> None: ...
514
+ # Windows.Foundation.IMemoryBufferReference Windows.AI.MachineLearning.TensorInt64Bit::CreateReference()
515
+ def create_reference(self) -> windows_foundation.IMemoryBufferReference: ...
516
+ # Windows.Foundation.Collections.IVectorView`1<System.Int64> Windows.AI.MachineLearning.TensorInt64Bit::GetAsVectorView()
517
+ def get_as_vector_view(self) -> typing.Sequence[winrt.system.Int64]: ...
518
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.TensorInt64Bit::get_Kind()
519
+ @_property
520
+ def kind(self) -> LearningModelFeatureKind: ...
521
+ # Windows.Foundation.Collections.IVectorView`1<System.Int64> Windows.AI.MachineLearning.TensorInt64Bit::get_Shape()
522
+ @_property
523
+ def shape(self) -> typing.Sequence[winrt.system.Int64]: ...
524
+ # Windows.AI.MachineLearning.TensorKind Windows.AI.MachineLearning.TensorInt64Bit::get_TensorKind()
525
+ @_property
526
+ def tensor_kind(self) -> TensorKind: ...
527
+
528
+ @typing.final
529
+ class TensorInt8Bit_Static(winrt._winrt.IInspectable_Static):
530
+ # Windows.AI.MachineLearning.TensorInt8Bit Windows.AI.MachineLearning.TensorInt8Bit::Create()
531
+ def create(cls) -> TensorInt8Bit: ...
532
+ # Windows.AI.MachineLearning.TensorInt8Bit Windows.AI.MachineLearning.TensorInt8Bit::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
533
+ def create2(cls, shape: typing.Iterable[winrt.system.Int64], /) -> TensorInt8Bit: ...
534
+ # Windows.AI.MachineLearning.TensorInt8Bit Windows.AI.MachineLearning.TensorInt8Bit::CreateFromArray(Windows.Foundation.Collections.IIterable`1<System.Int64>,System.Byte[])
535
+ def create_from_array(cls, shape: typing.Iterable[winrt.system.Int64], data: typing.Union[winrt.system.Array[winrt.system.UInt8], winrt.system.ReadableBuffer], /) -> TensorInt8Bit: ...
536
+ # Windows.AI.MachineLearning.TensorInt8Bit Windows.AI.MachineLearning.TensorInt8Bit::CreateFromBuffer(System.Int64[],Windows.Storage.Streams.IBuffer)
537
+ def create_from_buffer(cls, shape: typing.Union[winrt.system.Array[winrt.system.Int64], winrt.system.ReadableBuffer], buffer: winrt.system.Buffer, /) -> TensorInt8Bit: ...
538
+ # Windows.AI.MachineLearning.TensorInt8Bit Windows.AI.MachineLearning.TensorInt8Bit::CreateFromIterable(Windows.Foundation.Collections.IIterable`1<System.Int64>,Windows.Foundation.Collections.IIterable`1<System.Byte>)
539
+ def create_from_iterable(cls, shape: typing.Iterable[winrt.system.Int64], data: typing.Iterable[winrt.system.UInt8], /) -> TensorInt8Bit: ...
540
+ # Windows.AI.MachineLearning.TensorInt8Bit Windows.AI.MachineLearning.TensorInt8Bit::CreateFromShapeArrayAndDataArray(System.Int64[],System.Byte[])
541
+ def create_from_shape_array_and_data_array(cls, shape: typing.Union[winrt.system.Array[winrt.system.Int64], winrt.system.ReadableBuffer], data: typing.Union[winrt.system.Array[winrt.system.UInt8], winrt.system.ReadableBuffer], /) -> TensorInt8Bit: ...
542
+
543
+ @typing.final
544
+ class TensorInt8Bit(winrt.system.Object, windows_foundation.IMemoryBuffer, windows_foundation.IClosable, ITensor, ILearningModelFeatureValue, metaclass=TensorInt8Bit_Static):
545
+ def __enter__(self: Self) -> Self: ...
546
+ def __exit__(self, exc_type: typing.Optional[typing.Type[BaseException]], exc_value: typing.Optional[BaseException], traceback: typing.Optional[types.TracebackType]) -> None: ...
547
+ # System.Void Windows.AI.MachineLearning.TensorInt8Bit::Close()
548
+ def close(self) -> None: ...
549
+ # Windows.Foundation.IMemoryBufferReference Windows.AI.MachineLearning.TensorInt8Bit::CreateReference()
550
+ def create_reference(self) -> windows_foundation.IMemoryBufferReference: ...
551
+ # Windows.Foundation.Collections.IVectorView`1<System.Byte> Windows.AI.MachineLearning.TensorInt8Bit::GetAsVectorView()
552
+ def get_as_vector_view(self) -> typing.Sequence[winrt.system.UInt8]: ...
553
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.TensorInt8Bit::get_Kind()
554
+ @_property
555
+ def kind(self) -> LearningModelFeatureKind: ...
556
+ # Windows.Foundation.Collections.IVectorView`1<System.Int64> Windows.AI.MachineLearning.TensorInt8Bit::get_Shape()
557
+ @_property
558
+ def shape(self) -> typing.Sequence[winrt.system.Int64]: ...
559
+ # Windows.AI.MachineLearning.TensorKind Windows.AI.MachineLearning.TensorInt8Bit::get_TensorKind()
560
+ @_property
561
+ def tensor_kind(self) -> TensorKind: ...
562
+
563
+ @typing.final
564
+ class TensorString_Static(winrt._winrt.IInspectable_Static):
565
+ # Windows.AI.MachineLearning.TensorString Windows.AI.MachineLearning.TensorString::Create()
566
+ def create(cls) -> TensorString: ...
567
+ # Windows.AI.MachineLearning.TensorString Windows.AI.MachineLearning.TensorString::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
568
+ def create2(cls, shape: typing.Iterable[winrt.system.Int64], /) -> TensorString: ...
569
+ # Windows.AI.MachineLearning.TensorString Windows.AI.MachineLearning.TensorString::CreateFromArray(Windows.Foundation.Collections.IIterable`1<System.Int64>,System.String[])
570
+ def create_from_array(cls, shape: typing.Iterable[winrt.system.Int64], data: typing.Union[winrt.system.Array[str], winrt.system.ReadableBuffer], /) -> TensorString: ...
571
+ # Windows.AI.MachineLearning.TensorString Windows.AI.MachineLearning.TensorString::CreateFromIterable(Windows.Foundation.Collections.IIterable`1<System.Int64>,Windows.Foundation.Collections.IIterable`1<System.String>)
572
+ def create_from_iterable(cls, shape: typing.Iterable[winrt.system.Int64], data: typing.Iterable[str], /) -> TensorString: ...
573
+ # Windows.AI.MachineLearning.TensorString Windows.AI.MachineLearning.TensorString::CreateFromShapeArrayAndDataArray(System.Int64[],System.String[])
574
+ def create_from_shape_array_and_data_array(cls, shape: typing.Union[winrt.system.Array[winrt.system.Int64], winrt.system.ReadableBuffer], data: typing.Union[winrt.system.Array[str], winrt.system.ReadableBuffer], /) -> TensorString: ...
575
+
576
+ @typing.final
577
+ class TensorString(winrt.system.Object, windows_foundation.IMemoryBuffer, windows_foundation.IClosable, ITensor, ILearningModelFeatureValue, metaclass=TensorString_Static):
578
+ def __enter__(self: Self) -> Self: ...
579
+ def __exit__(self, exc_type: typing.Optional[typing.Type[BaseException]], exc_value: typing.Optional[BaseException], traceback: typing.Optional[types.TracebackType]) -> None: ...
580
+ # System.Void Windows.AI.MachineLearning.TensorString::Close()
581
+ def close(self) -> None: ...
582
+ # Windows.Foundation.IMemoryBufferReference Windows.AI.MachineLearning.TensorString::CreateReference()
583
+ def create_reference(self) -> windows_foundation.IMemoryBufferReference: ...
584
+ # Windows.Foundation.Collections.IVectorView`1<System.String> Windows.AI.MachineLearning.TensorString::GetAsVectorView()
585
+ def get_as_vector_view(self) -> typing.Sequence[str]: ...
586
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.TensorString::get_Kind()
587
+ @_property
588
+ def kind(self) -> LearningModelFeatureKind: ...
589
+ # Windows.Foundation.Collections.IVectorView`1<System.Int64> Windows.AI.MachineLearning.TensorString::get_Shape()
590
+ @_property
591
+ def shape(self) -> typing.Sequence[winrt.system.Int64]: ...
592
+ # Windows.AI.MachineLearning.TensorKind Windows.AI.MachineLearning.TensorString::get_TensorKind()
593
+ @_property
594
+ def tensor_kind(self) -> TensorKind: ...
595
+
596
+ @typing.final
597
+ class TensorUInt16Bit_Static(winrt._winrt.IInspectable_Static):
598
+ # Windows.AI.MachineLearning.TensorUInt16Bit Windows.AI.MachineLearning.TensorUInt16Bit::Create()
599
+ def create(cls) -> TensorUInt16Bit: ...
600
+ # Windows.AI.MachineLearning.TensorUInt16Bit Windows.AI.MachineLearning.TensorUInt16Bit::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
601
+ def create2(cls, shape: typing.Iterable[winrt.system.Int64], /) -> TensorUInt16Bit: ...
602
+ # Windows.AI.MachineLearning.TensorUInt16Bit Windows.AI.MachineLearning.TensorUInt16Bit::CreateFromArray(Windows.Foundation.Collections.IIterable`1<System.Int64>,System.UInt16[])
603
+ def create_from_array(cls, shape: typing.Iterable[winrt.system.Int64], data: typing.Union[winrt.system.Array[winrt.system.UInt16], winrt.system.ReadableBuffer], /) -> TensorUInt16Bit: ...
604
+ # Windows.AI.MachineLearning.TensorUInt16Bit Windows.AI.MachineLearning.TensorUInt16Bit::CreateFromBuffer(System.Int64[],Windows.Storage.Streams.IBuffer)
605
+ def create_from_buffer(cls, shape: typing.Union[winrt.system.Array[winrt.system.Int64], winrt.system.ReadableBuffer], buffer: winrt.system.Buffer, /) -> TensorUInt16Bit: ...
606
+ # Windows.AI.MachineLearning.TensorUInt16Bit Windows.AI.MachineLearning.TensorUInt16Bit::CreateFromIterable(Windows.Foundation.Collections.IIterable`1<System.Int64>,Windows.Foundation.Collections.IIterable`1<System.UInt16>)
607
+ def create_from_iterable(cls, shape: typing.Iterable[winrt.system.Int64], data: typing.Iterable[winrt.system.UInt16], /) -> TensorUInt16Bit: ...
608
+ # Windows.AI.MachineLearning.TensorUInt16Bit Windows.AI.MachineLearning.TensorUInt16Bit::CreateFromShapeArrayAndDataArray(System.Int64[],System.UInt16[])
609
+ def create_from_shape_array_and_data_array(cls, shape: typing.Union[winrt.system.Array[winrt.system.Int64], winrt.system.ReadableBuffer], data: typing.Union[winrt.system.Array[winrt.system.UInt16], winrt.system.ReadableBuffer], /) -> TensorUInt16Bit: ...
610
+
611
+ @typing.final
612
+ class TensorUInt16Bit(winrt.system.Object, windows_foundation.IMemoryBuffer, windows_foundation.IClosable, ITensor, ILearningModelFeatureValue, metaclass=TensorUInt16Bit_Static):
613
+ def __enter__(self: Self) -> Self: ...
614
+ def __exit__(self, exc_type: typing.Optional[typing.Type[BaseException]], exc_value: typing.Optional[BaseException], traceback: typing.Optional[types.TracebackType]) -> None: ...
615
+ # System.Void Windows.AI.MachineLearning.TensorUInt16Bit::Close()
616
+ def close(self) -> None: ...
617
+ # Windows.Foundation.IMemoryBufferReference Windows.AI.MachineLearning.TensorUInt16Bit::CreateReference()
618
+ def create_reference(self) -> windows_foundation.IMemoryBufferReference: ...
619
+ # Windows.Foundation.Collections.IVectorView`1<System.UInt16> Windows.AI.MachineLearning.TensorUInt16Bit::GetAsVectorView()
620
+ def get_as_vector_view(self) -> typing.Sequence[winrt.system.UInt16]: ...
621
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.TensorUInt16Bit::get_Kind()
622
+ @_property
623
+ def kind(self) -> LearningModelFeatureKind: ...
624
+ # Windows.Foundation.Collections.IVectorView`1<System.Int64> Windows.AI.MachineLearning.TensorUInt16Bit::get_Shape()
625
+ @_property
626
+ def shape(self) -> typing.Sequence[winrt.system.Int64]: ...
627
+ # Windows.AI.MachineLearning.TensorKind Windows.AI.MachineLearning.TensorUInt16Bit::get_TensorKind()
628
+ @_property
629
+ def tensor_kind(self) -> TensorKind: ...
630
+
631
+ @typing.final
632
+ class TensorUInt32Bit_Static(winrt._winrt.IInspectable_Static):
633
+ # Windows.AI.MachineLearning.TensorUInt32Bit Windows.AI.MachineLearning.TensorUInt32Bit::Create()
634
+ def create(cls) -> TensorUInt32Bit: ...
635
+ # Windows.AI.MachineLearning.TensorUInt32Bit Windows.AI.MachineLearning.TensorUInt32Bit::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
636
+ def create2(cls, shape: typing.Iterable[winrt.system.Int64], /) -> TensorUInt32Bit: ...
637
+ # Windows.AI.MachineLearning.TensorUInt32Bit Windows.AI.MachineLearning.TensorUInt32Bit::CreateFromArray(Windows.Foundation.Collections.IIterable`1<System.Int64>,System.UInt32[])
638
+ def create_from_array(cls, shape: typing.Iterable[winrt.system.Int64], data: typing.Union[winrt.system.Array[winrt.system.UInt32], winrt.system.ReadableBuffer], /) -> TensorUInt32Bit: ...
639
+ # Windows.AI.MachineLearning.TensorUInt32Bit Windows.AI.MachineLearning.TensorUInt32Bit::CreateFromBuffer(System.Int64[],Windows.Storage.Streams.IBuffer)
640
+ def create_from_buffer(cls, shape: typing.Union[winrt.system.Array[winrt.system.Int64], winrt.system.ReadableBuffer], buffer: winrt.system.Buffer, /) -> TensorUInt32Bit: ...
641
+ # Windows.AI.MachineLearning.TensorUInt32Bit Windows.AI.MachineLearning.TensorUInt32Bit::CreateFromIterable(Windows.Foundation.Collections.IIterable`1<System.Int64>,Windows.Foundation.Collections.IIterable`1<System.UInt32>)
642
+ def create_from_iterable(cls, shape: typing.Iterable[winrt.system.Int64], data: typing.Iterable[winrt.system.UInt32], /) -> TensorUInt32Bit: ...
643
+ # Windows.AI.MachineLearning.TensorUInt32Bit Windows.AI.MachineLearning.TensorUInt32Bit::CreateFromShapeArrayAndDataArray(System.Int64[],System.UInt32[])
644
+ def create_from_shape_array_and_data_array(cls, shape: typing.Union[winrt.system.Array[winrt.system.Int64], winrt.system.ReadableBuffer], data: typing.Union[winrt.system.Array[winrt.system.UInt32], winrt.system.ReadableBuffer], /) -> TensorUInt32Bit: ...
645
+
646
+ @typing.final
647
+ class TensorUInt32Bit(winrt.system.Object, windows_foundation.IMemoryBuffer, windows_foundation.IClosable, ITensor, ILearningModelFeatureValue, metaclass=TensorUInt32Bit_Static):
648
+ def __enter__(self: Self) -> Self: ...
649
+ def __exit__(self, exc_type: typing.Optional[typing.Type[BaseException]], exc_value: typing.Optional[BaseException], traceback: typing.Optional[types.TracebackType]) -> None: ...
650
+ # System.Void Windows.AI.MachineLearning.TensorUInt32Bit::Close()
651
+ def close(self) -> None: ...
652
+ # Windows.Foundation.IMemoryBufferReference Windows.AI.MachineLearning.TensorUInt32Bit::CreateReference()
653
+ def create_reference(self) -> windows_foundation.IMemoryBufferReference: ...
654
+ # Windows.Foundation.Collections.IVectorView`1<System.UInt32> Windows.AI.MachineLearning.TensorUInt32Bit::GetAsVectorView()
655
+ def get_as_vector_view(self) -> typing.Sequence[winrt.system.UInt32]: ...
656
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.TensorUInt32Bit::get_Kind()
657
+ @_property
658
+ def kind(self) -> LearningModelFeatureKind: ...
659
+ # Windows.Foundation.Collections.IVectorView`1<System.Int64> Windows.AI.MachineLearning.TensorUInt32Bit::get_Shape()
660
+ @_property
661
+ def shape(self) -> typing.Sequence[winrt.system.Int64]: ...
662
+ # Windows.AI.MachineLearning.TensorKind Windows.AI.MachineLearning.TensorUInt32Bit::get_TensorKind()
663
+ @_property
664
+ def tensor_kind(self) -> TensorKind: ...
665
+
666
+ @typing.final
667
+ class TensorUInt64Bit_Static(winrt._winrt.IInspectable_Static):
668
+ # Windows.AI.MachineLearning.TensorUInt64Bit Windows.AI.MachineLearning.TensorUInt64Bit::Create()
669
+ def create(cls) -> TensorUInt64Bit: ...
670
+ # Windows.AI.MachineLearning.TensorUInt64Bit Windows.AI.MachineLearning.TensorUInt64Bit::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
671
+ def create2(cls, shape: typing.Iterable[winrt.system.Int64], /) -> TensorUInt64Bit: ...
672
+ # Windows.AI.MachineLearning.TensorUInt64Bit Windows.AI.MachineLearning.TensorUInt64Bit::CreateFromArray(Windows.Foundation.Collections.IIterable`1<System.Int64>,System.UInt64[])
673
+ def create_from_array(cls, shape: typing.Iterable[winrt.system.Int64], data: typing.Union[winrt.system.Array[winrt.system.UInt64], winrt.system.ReadableBuffer], /) -> TensorUInt64Bit: ...
674
+ # Windows.AI.MachineLearning.TensorUInt64Bit Windows.AI.MachineLearning.TensorUInt64Bit::CreateFromBuffer(System.Int64[],Windows.Storage.Streams.IBuffer)
675
+ def create_from_buffer(cls, shape: typing.Union[winrt.system.Array[winrt.system.Int64], winrt.system.ReadableBuffer], buffer: winrt.system.Buffer, /) -> TensorUInt64Bit: ...
676
+ # Windows.AI.MachineLearning.TensorUInt64Bit Windows.AI.MachineLearning.TensorUInt64Bit::CreateFromIterable(Windows.Foundation.Collections.IIterable`1<System.Int64>,Windows.Foundation.Collections.IIterable`1<System.UInt64>)
677
+ def create_from_iterable(cls, shape: typing.Iterable[winrt.system.Int64], data: typing.Iterable[winrt.system.UInt64], /) -> TensorUInt64Bit: ...
678
+ # Windows.AI.MachineLearning.TensorUInt64Bit Windows.AI.MachineLearning.TensorUInt64Bit::CreateFromShapeArrayAndDataArray(System.Int64[],System.UInt64[])
679
+ def create_from_shape_array_and_data_array(cls, shape: typing.Union[winrt.system.Array[winrt.system.Int64], winrt.system.ReadableBuffer], data: typing.Union[winrt.system.Array[winrt.system.UInt64], winrt.system.ReadableBuffer], /) -> TensorUInt64Bit: ...
680
+
681
+ @typing.final
682
+ class TensorUInt64Bit(winrt.system.Object, windows_foundation.IMemoryBuffer, windows_foundation.IClosable, ITensor, ILearningModelFeatureValue, metaclass=TensorUInt64Bit_Static):
683
+ def __enter__(self: Self) -> Self: ...
684
+ def __exit__(self, exc_type: typing.Optional[typing.Type[BaseException]], exc_value: typing.Optional[BaseException], traceback: typing.Optional[types.TracebackType]) -> None: ...
685
+ # System.Void Windows.AI.MachineLearning.TensorUInt64Bit::Close()
686
+ def close(self) -> None: ...
687
+ # Windows.Foundation.IMemoryBufferReference Windows.AI.MachineLearning.TensorUInt64Bit::CreateReference()
688
+ def create_reference(self) -> windows_foundation.IMemoryBufferReference: ...
689
+ # Windows.Foundation.Collections.IVectorView`1<System.UInt64> Windows.AI.MachineLearning.TensorUInt64Bit::GetAsVectorView()
690
+ def get_as_vector_view(self) -> typing.Sequence[winrt.system.UInt64]: ...
691
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.TensorUInt64Bit::get_Kind()
692
+ @_property
693
+ def kind(self) -> LearningModelFeatureKind: ...
694
+ # Windows.Foundation.Collections.IVectorView`1<System.Int64> Windows.AI.MachineLearning.TensorUInt64Bit::get_Shape()
695
+ @_property
696
+ def shape(self) -> typing.Sequence[winrt.system.Int64]: ...
697
+ # Windows.AI.MachineLearning.TensorKind Windows.AI.MachineLearning.TensorUInt64Bit::get_TensorKind()
698
+ @_property
699
+ def tensor_kind(self) -> TensorKind: ...
700
+
701
+ @typing.final
702
+ class TensorUInt8Bit_Static(winrt._winrt.IInspectable_Static):
703
+ # Windows.AI.MachineLearning.TensorUInt8Bit Windows.AI.MachineLearning.TensorUInt8Bit::Create()
704
+ def create(cls) -> TensorUInt8Bit: ...
705
+ # Windows.AI.MachineLearning.TensorUInt8Bit Windows.AI.MachineLearning.TensorUInt8Bit::Create(Windows.Foundation.Collections.IIterable`1<System.Int64>)
706
+ def create2(cls, shape: typing.Iterable[winrt.system.Int64], /) -> TensorUInt8Bit: ...
707
+ # Windows.AI.MachineLearning.TensorUInt8Bit Windows.AI.MachineLearning.TensorUInt8Bit::CreateFromArray(Windows.Foundation.Collections.IIterable`1<System.Int64>,System.Byte[])
708
+ def create_from_array(cls, shape: typing.Iterable[winrt.system.Int64], data: typing.Union[winrt.system.Array[winrt.system.UInt8], winrt.system.ReadableBuffer], /) -> TensorUInt8Bit: ...
709
+ # Windows.AI.MachineLearning.TensorUInt8Bit Windows.AI.MachineLearning.TensorUInt8Bit::CreateFromBuffer(System.Int64[],Windows.Storage.Streams.IBuffer)
710
+ def create_from_buffer(cls, shape: typing.Union[winrt.system.Array[winrt.system.Int64], winrt.system.ReadableBuffer], buffer: winrt.system.Buffer, /) -> TensorUInt8Bit: ...
711
+ # Windows.AI.MachineLearning.TensorUInt8Bit Windows.AI.MachineLearning.TensorUInt8Bit::CreateFromIterable(Windows.Foundation.Collections.IIterable`1<System.Int64>,Windows.Foundation.Collections.IIterable`1<System.Byte>)
712
+ def create_from_iterable(cls, shape: typing.Iterable[winrt.system.Int64], data: typing.Iterable[winrt.system.UInt8], /) -> TensorUInt8Bit: ...
713
+ # Windows.AI.MachineLearning.TensorUInt8Bit Windows.AI.MachineLearning.TensorUInt8Bit::CreateFromShapeArrayAndDataArray(System.Int64[],System.Byte[])
714
+ def create_from_shape_array_and_data_array(cls, shape: typing.Union[winrt.system.Array[winrt.system.Int64], winrt.system.ReadableBuffer], data: typing.Union[winrt.system.Array[winrt.system.UInt8], winrt.system.ReadableBuffer], /) -> TensorUInt8Bit: ...
715
+
716
+ @typing.final
717
+ class TensorUInt8Bit(winrt.system.Object, windows_foundation.IMemoryBuffer, windows_foundation.IClosable, ITensor, ILearningModelFeatureValue, metaclass=TensorUInt8Bit_Static):
718
+ def __enter__(self: Self) -> Self: ...
719
+ def __exit__(self, exc_type: typing.Optional[typing.Type[BaseException]], exc_value: typing.Optional[BaseException], traceback: typing.Optional[types.TracebackType]) -> None: ...
720
+ # System.Void Windows.AI.MachineLearning.TensorUInt8Bit::Close()
721
+ def close(self) -> None: ...
722
+ # Windows.Foundation.IMemoryBufferReference Windows.AI.MachineLearning.TensorUInt8Bit::CreateReference()
723
+ def create_reference(self) -> windows_foundation.IMemoryBufferReference: ...
724
+ # Windows.Foundation.Collections.IVectorView`1<System.Byte> Windows.AI.MachineLearning.TensorUInt8Bit::GetAsVectorView()
725
+ def get_as_vector_view(self) -> typing.Sequence[winrt.system.UInt8]: ...
726
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.TensorUInt8Bit::get_Kind()
727
+ @_property
728
+ def kind(self) -> LearningModelFeatureKind: ...
729
+ # Windows.Foundation.Collections.IVectorView`1<System.Int64> Windows.AI.MachineLearning.TensorUInt8Bit::get_Shape()
730
+ @_property
731
+ def shape(self) -> typing.Sequence[winrt.system.Int64]: ...
732
+ # Windows.AI.MachineLearning.TensorKind Windows.AI.MachineLearning.TensorUInt8Bit::get_TensorKind()
733
+ @_property
734
+ def tensor_kind(self) -> TensorKind: ...
735
+
736
+ @typing.final
737
+ class _ILearningModelFeatureDescriptor: ...
738
+
739
+ class ILearningModelFeatureDescriptor(winrt._winrt.IInspectable):
740
+ # System.String Windows.AI.MachineLearning.ILearningModelFeatureDescriptor::get_Description()
741
+ @_property
742
+ @abstractmethod
743
+ def description(self) -> str: ...
744
+ # System.Boolean Windows.AI.MachineLearning.ILearningModelFeatureDescriptor::get_IsRequired()
745
+ @_property
746
+ @abstractmethod
747
+ def is_required(self) -> bool: ...
748
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.ILearningModelFeatureDescriptor::get_Kind()
749
+ @_property
750
+ @abstractmethod
751
+ def kind(self) -> LearningModelFeatureKind: ...
752
+ # System.String Windows.AI.MachineLearning.ILearningModelFeatureDescriptor::get_Name()
753
+ @_property
754
+ @abstractmethod
755
+ def name(self) -> str: ...
756
+
757
+ @typing.final
758
+ class _ILearningModelFeatureValue: ...
759
+
760
+ class ILearningModelFeatureValue(winrt._winrt.IInspectable):
761
+ # Windows.AI.MachineLearning.LearningModelFeatureKind Windows.AI.MachineLearning.ILearningModelFeatureValue::get_Kind()
762
+ @_property
763
+ @abstractmethod
764
+ def kind(self) -> LearningModelFeatureKind: ...
765
+
766
+ @typing.final
767
+ class _ILearningModelOperatorProvider: ...
768
+
769
+ class ILearningModelOperatorProvider(winrt._winrt.IInspectable): # type: ignore[misc]
770
+ pass
771
+
772
+ @typing.final
773
+ class _ITensor: ...
774
+
775
+ class ITensor(ILearningModelFeatureValue, winrt._winrt.IInspectable):
776
+ # Windows.Foundation.Collections.IVectorView`1<System.Int64> Windows.AI.MachineLearning.ITensor::get_Shape()
777
+ @_property
778
+ @abstractmethod
779
+ def shape(self) -> typing.Sequence[winrt.system.Int64]: ...
780
+ # Windows.AI.MachineLearning.TensorKind Windows.AI.MachineLearning.ITensor::get_TensorKind()
781
+ @_property
782
+ @abstractmethod
783
+ def tensor_kind(self) -> TensorKind: ...
784
+
@@ -0,0 +1,113 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.1
2
+
3
+ import enum
4
+
5
+ import winrt.runtime._internals
6
+ import winrt.system
7
+ from winrt._winrt_windows_ai_machinelearning import (
8
+ ImageFeatureDescriptor,
9
+ ImageFeatureValue,
10
+ LearningModel,
11
+ LearningModelBinding,
12
+ LearningModelDevice,
13
+ LearningModelEvaluationResult,
14
+ LearningModelSession,
15
+ LearningModelSessionOptions,
16
+ MapFeatureDescriptor,
17
+ SequenceFeatureDescriptor,
18
+ TensorBoolean,
19
+ TensorDouble,
20
+ TensorFeatureDescriptor,
21
+ TensorFloat,
22
+ TensorFloat16Bit,
23
+ TensorInt16Bit,
24
+ TensorInt32Bit,
25
+ TensorInt64Bit,
26
+ TensorInt8Bit,
27
+ TensorString,
28
+ TensorUInt16Bit,
29
+ TensorUInt32Bit,
30
+ TensorUInt64Bit,
31
+ TensorUInt8Bit,
32
+ _ILearningModelFeatureDescriptor,
33
+ ILearningModelFeatureDescriptor,
34
+ _ILearningModelFeatureValue,
35
+ ILearningModelFeatureValue,
36
+ _ILearningModelOperatorProvider,
37
+ ILearningModelOperatorProvider,
38
+ _ITensor,
39
+ ITensor,
40
+ )
41
+
42
+ __all__ = [
43
+ "LearningModelDeviceKind",
44
+ "LearningModelFeatureKind",
45
+ "LearningModelPixelRange",
46
+ "TensorKind",
47
+ "ImageFeatureDescriptor",
48
+ "ImageFeatureValue",
49
+ "LearningModel",
50
+ "LearningModelBinding",
51
+ "LearningModelDevice",
52
+ "LearningModelEvaluationResult",
53
+ "LearningModelSession",
54
+ "LearningModelSessionOptions",
55
+ "MapFeatureDescriptor",
56
+ "SequenceFeatureDescriptor",
57
+ "TensorBoolean",
58
+ "TensorDouble",
59
+ "TensorFeatureDescriptor",
60
+ "TensorFloat",
61
+ "TensorFloat16Bit",
62
+ "TensorInt16Bit",
63
+ "TensorInt32Bit",
64
+ "TensorInt64Bit",
65
+ "TensorInt8Bit",
66
+ "TensorString",
67
+ "TensorUInt16Bit",
68
+ "TensorUInt32Bit",
69
+ "TensorUInt64Bit",
70
+ "TensorUInt8Bit",
71
+ "ILearningModelFeatureDescriptor",
72
+ "ILearningModelFeatureValue",
73
+ "ILearningModelOperatorProvider",
74
+ "ITensor",
75
+ ]
76
+
77
+ class LearningModelDeviceKind(enum.IntEnum):
78
+ DEFAULT = 0
79
+ CPU = 1
80
+ DIRECTX = 2
81
+ DIRECTX_HIGH_PERFORMANCE = 3
82
+ DIRECTX_MIN_POWER = 4
83
+
84
+ class LearningModelFeatureKind(enum.IntEnum):
85
+ TENSOR = 0
86
+ SEQUENCE = 1
87
+ MAP = 2
88
+ IMAGE = 3
89
+
90
+ class LearningModelPixelRange(enum.IntEnum):
91
+ ZERO_TO255 = 0
92
+ ZERO_TO_ONE = 1
93
+ MINUS_ONE_TO_ONE = 2
94
+
95
+ class TensorKind(enum.IntEnum):
96
+ UNDEFINED = 0
97
+ FLOAT = 1
98
+ UINT8 = 2
99
+ INT8 = 3
100
+ UINT16 = 4
101
+ INT16 = 5
102
+ INT32 = 6
103
+ INT64 = 7
104
+ STRING = 8
105
+ BOOLEAN = 9
106
+ FLOAT16 = 10
107
+ DOUBLE = 11
108
+ UINT32 = 12
109
+ UINT64 = 13
110
+ COMPLEX64 = 14
111
+ COMPLEX128 = 15
112
+
113
+ winrt.runtime._internals.mixin_mapping(LearningModelBinding)
File without changes
@@ -0,0 +1,32 @@
1
+ Metadata-Version: 2.4
2
+ Name: winrt-Windows.AI.MachineLearning
3
+ Version: 3.2.1
4
+ Summary: Python projection of Windows Runtime (WinRT) APIs
5
+ License-Expression: MIT
6
+ Project-URL: Documentation, https://pywinrt.readthedocs.io
7
+ Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
9
+ Classifier: Operating System :: Microsoft :: Windows
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: Implementation :: CPython
12
+ Classifier: Intended Audience :: Developers
13
+ Requires-Python: >=3.9
14
+ Description-Content-Type: text/markdown
15
+ Requires-Dist: winrt-runtime~=3.2.1.0
16
+ Provides-Extra: all
17
+ Requires-Dist: winrt-Windows.Foundation[all]~=3.2.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]~=3.2.1.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Graphics[all]~=3.2.1.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.Graphics.DirectX.Direct3D11[all]~=3.2.1.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.Graphics.Imaging[all]~=3.2.1.0; extra == "all"
22
+ Requires-Dist: winrt-Windows.Media[all]~=3.2.1.0; extra == "all"
23
+ Requires-Dist: winrt-Windows.Storage[all]~=3.2.1.0; extra == "all"
24
+ Requires-Dist: winrt-Windows.Storage.Streams[all]~=3.2.1.0; extra == "all"
25
+
26
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
27
+
28
+ # winrt-Windows.AI.MachineLearning
29
+
30
+ Windows Runtime (WinRT) APIs for for the `Windows.AI.MachineLearning` namespace.
31
+
32
+ This package provides the `winrt.windows.ai.machinelearning` module.
@@ -0,0 +1,8 @@
1
+ winrt/_winrt_windows_ai_machinelearning.cp314-win_arm64.pyd,sha256=4_RwjlreD3Xu7N9jYSDTAAAnaHB4SK8UpFbR9NsWapo,862208
2
+ winrt/_winrt_windows_ai_machinelearning.pyi,sha256=DR0Iosa7YOovudOTYL8WgKOoEunWjTPspf8meojdEvk,64845
3
+ winrt/windows/ai/machinelearning/__init__.py,sha256=1wvJVWHo2qtdkX31NR0EtgmvkppsRL09ySgwdG8_iC0,2567
4
+ winrt/windows/ai/machinelearning/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ winrt_windows_ai_machinelearning-3.2.1.dist-info/METADATA,sha256=TZrygjNZTW6kWViAQ3sfryRrA7BPcWJjZOK8hpDs-Yc,1588
6
+ winrt_windows_ai_machinelearning-3.2.1.dist-info/WHEEL,sha256=bMXkUWfr_3hlaRObp_pv9_U0ksvQo0T0Mwq6lQkXaZc,101
7
+ winrt_windows_ai_machinelearning-3.2.1.dist-info/top_level.txt,sha256=BzwQb4dZRt0NxCXi10ARjWsox7Asmtf_lXrw_KR-D_E,6
8
+ winrt_windows_ai_machinelearning-3.2.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp314-cp314-win_arm64
5
+