共用方式為


LearningModel.LoadFromStreamAsync 方法

定義

多載

LoadFromStreamAsync(IRandomAccessStreamReference)

以非同步方式從資料流程載入 ONNX 模型。

LoadFromStreamAsync(IRandomAccessStreamReference, ILearningModelOperatorProvider)

以非同步方式從資料流程載入 ONNX 模型。

LoadFromStreamAsync(IRandomAccessStreamReference)

以非同步方式從資料流程載入 ONNX 模型。

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)

參數

modelStream
IRandomAccessStreamReference

要從中載入模型的資料流程。

傳回

代表模型的 物件。

屬性

備註

Windows Server

若要在 Windows Server 上使用此 API,您必須搭配桌面體驗使用 Windows Server 2019。

執行緒安全

此 API 是安全線程。

適用於

LoadFromStreamAsync(IRandomAccessStreamReference, ILearningModelOperatorProvider)

以非同步方式從資料流程載入 ONNX 模型。

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)

參數

modelStream
IRandomAccessStreamReference

要從中載入模型的資料流程。

傳回

代表模型的 物件。

屬性

備註

Windows Server

若要在 Windows Server 上使用此 API,您必須搭配桌面體驗使用 Windows Server 2019。

執行緒安全

此 API 是安全線程。

適用於