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.

public:
 static IAsyncOperation<LearningModel ^> ^ LoadFromStreamAsync(IRandomAccessStreamReference ^ modelStream);
/// [Windows.Foundation.Metadata.Overload("LoadFromStreamAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<LearningModel> LoadFromStreamAsync(IRandomAccessStreamReference const& modelStream);
[Windows.Foundation.Metadata.Overload("LoadFromStreamAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<LearningModel> LoadFromStreamAsync(IRandomAccessStreamReference modelStream);
function loadFromStreamAsync(modelStream)
Public Shared Function LoadFromStreamAsync (modelStream As IRandomAccessStreamReference) As IAsyncOperation(Of LearningModel)

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.

public:
 static IAsyncOperation<LearningModel ^> ^ LoadFromStreamAsync(IRandomAccessStreamReference ^ modelStream, ILearningModelOperatorProvider ^ operatorProvider);
/// [Windows.Foundation.Metadata.Overload("LoadFromStreamWithOperatorProviderAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<LearningModel> LoadFromStreamAsync(IRandomAccessStreamReference const& modelStream, ILearningModelOperatorProvider const& operatorProvider);
[Windows.Foundation.Metadata.Overload("LoadFromStreamWithOperatorProviderAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<LearningModel> LoadFromStreamAsync(IRandomAccessStreamReference modelStream, ILearningModelOperatorProvider operatorProvider);
function loadFromStreamAsync(modelStream, operatorProvider)
Public Shared Function LoadFromStreamAsync (modelStream As IRandomAccessStreamReference, operatorProvider As ILearningModelOperatorProvider) As IAsyncOperation(Of LearningModel)

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