Condividi tramite


LearningModel.LoadFromStreamAsync Metodo

Definizione

Overload

LoadFromStreamAsync(IRandomAccessStreamReference)

Carica un modello ONNX da un flusso in modo asincrono.

LoadFromStreamAsync(IRandomAccessStreamReference, ILearningModelOperatorProvider)

Carica un modello ONNX da un flusso in modo asincrono.

LoadFromStreamAsync(IRandomAccessStreamReference)

Carica un modello ONNX da un flusso in modo asincrono.

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)

Parametri

modelStream
IRandomAccessStreamReference

Flusso da cui caricare il modello.

Restituisce

Oggetto che rappresenta il modello.

Attributi

Commenti

Windows Server

Per usare questa API in Windows Server, è necessario usare Windows Server 2019 con Esperienza desktop.

Thread safety

Questa API è thread-safe.

Si applica a

LoadFromStreamAsync(IRandomAccessStreamReference, ILearningModelOperatorProvider)

Carica un modello ONNX da un flusso in modo asincrono.

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)

Parametri

modelStream
IRandomAccessStreamReference

Flusso da cui caricare il modello.

Restituisce

Oggetto che rappresenta il modello.

Attributi

Commenti

Windows Server

Per usare questa API in Windows Server, è necessario usare Windows Server 2019 con Esperienza desktop.

Thread safety

Questa API è thread-safe.

Si applica a