Jaa


LearningModel.LoadFromStream Method

Definition

Overloads

LoadFromStream(IRandomAccessStreamReference)

Loads an ONNX model from a stream.

LoadFromStream(IRandomAccessStreamReference, ILearningModelOperatorProvider)

Loads an ONNX model from a stream.

LoadFromStream(IRandomAccessStreamReference)

Loads an ONNX model from a stream.

public:
 static LearningModel ^ LoadFromStream(IRandomAccessStreamReference ^ modelStream);
/// [Windows.Foundation.Metadata.Overload("LoadFromStream")]
 static LearningModel LoadFromStream(IRandomAccessStreamReference const& modelStream);
[Windows.Foundation.Metadata.Overload("LoadFromStream")]
public static LearningModel LoadFromStream(IRandomAccessStreamReference modelStream);
function loadFromStream(modelStream)
Public Shared Function LoadFromStream (modelStream As IRandomAccessStreamReference) As LearningModel

Parameters

modelStream
IRandomAccessStreamReference

The stream from which to load the model.

Returns

An object representing the model file.

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

LoadFromStream(IRandomAccessStreamReference, ILearningModelOperatorProvider)

Loads an ONNX model from a stream.

public:
 static LearningModel ^ LoadFromStream(IRandomAccessStreamReference ^ modelStream, ILearningModelOperatorProvider ^ operatorProvider);
/// [Windows.Foundation.Metadata.Overload("LoadFromStreamWithOperatorProvider")]
 static LearningModel LoadFromStream(IRandomAccessStreamReference const& modelStream, ILearningModelOperatorProvider const& operatorProvider);
[Windows.Foundation.Metadata.Overload("LoadFromStreamWithOperatorProvider")]
public static LearningModel LoadFromStream(IRandomAccessStreamReference modelStream, ILearningModelOperatorProvider operatorProvider);
function loadFromStream(modelStream, operatorProvider)
Public Shared Function LoadFromStream (modelStream As IRandomAccessStreamReference, operatorProvider As ILearningModelOperatorProvider) As LearningModel

Parameters

modelStream
IRandomAccessStreamReference

The stream from which to load the model.

Returns

An object representing the model file.

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