Bagikan melalui


LearningModel.LoadFromStreamAsync Metode

Definisi

Overload

LoadFromStreamAsync(IRandomAccessStreamReference)

Memuat model ONNX dari aliran secara asinkron.

LoadFromStreamAsync(IRandomAccessStreamReference, ILearningModelOperatorProvider)

Memuat model ONNX dari aliran secara asinkron.

LoadFromStreamAsync(IRandomAccessStreamReference)

Memuat model ONNX dari aliran secara asinkron.

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)

Parameter

modelStream
IRandomAccessStreamReference

Aliran untuk memuat model.

Mengembalikan

Objek yang mewakili model.

Atribut

Keterangan

Windows Server

Untuk menggunakan API ini di Windows Server, Anda harus menggunakan Windows Server 2019 dengan Pengalaman Desktop.

Keamanan utas

API ini aman untuk utas.

Berlaku untuk

LoadFromStreamAsync(IRandomAccessStreamReference, ILearningModelOperatorProvider)

Memuat model ONNX dari aliran secara asinkron.

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)

Parameter

modelStream
IRandomAccessStreamReference

Aliran untuk memuat model.

Mengembalikan

Objek yang mewakili model.

Atribut

Keterangan

Windows Server

Untuk menggunakan API ini di Windows Server, Anda harus menggunakan Windows Server 2019 dengan Pengalaman Desktop.

Keamanan utas

API ini aman untuk utas.

Berlaku untuk