Share via


LearningModel.LoadFromStreamAsync Method

Definition

Overloads

LoadFromStreamAsync(IRandomAccessStreamReference)

Loads an ONNX model from a stream asynchronously.

LoadFromStreamAsync(IRandomAccessStreamReference, ILearningModelOperatorProvider)

Loads an ONNX model from a stream asynchronously.

LoadFromStreamAsync(IRandomAccessStreamReference)

Loads an ONNX model from a stream asynchronously.

[Windows.Foundation.Metadata.Overload("LoadFromStreamAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<LearningModel> LoadFromStreamAsync(IRandomAccessStreamReference modelStream);

Parameters

modelStream
IRandomAccessStreamReference

The stream from which to load the model.

Returns

An object representing the model.

Attributes

Remarks

Windows Server

To use this API on Windows Server, you must use Windows Server 2019 with Desktop Experience.

Thread safety

This API is thread-safe.

Applies to

LoadFromStreamAsync(IRandomAccessStreamReference, ILearningModelOperatorProvider)

Loads an ONNX model from a stream asynchronously.

[Windows.Foundation.Metadata.Overload("LoadFromStreamWithOperatorProviderAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<LearningModel> LoadFromStreamAsync(IRandomAccessStreamReference modelStream, ILearningModelOperatorProvider operatorProvider);

Parameters

modelStream
IRandomAccessStreamReference

The stream from which to load the model.

Returns

An object representing the model.

Attributes

Remarks

Windows Server

To use this API on Windows Server, you must use Windows Server 2019 with Desktop Experience.

Thread safety

This API is thread-safe.

Applies to