Partager via


LearningModelPreview.LoadModelFromStreamAsync Méthode

Définition

Action déconseillée. Charge de façon asynchrone un modèle à partir d’un flux fourni.

public:
 static IAsyncOperation<LearningModelPreview ^> ^ LoadModelFromStreamAsync(IRandomAccessStreamReference ^ modelStream);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<LearningModelPreview> LoadModelFromStreamAsync(IRandomAccessStreamReference const& modelStream);
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("Use ILearningModelStatics instead of ILearningModelPreviewStatics. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")]
 static IAsyncOperation<LearningModelPreview> LoadModelFromStreamAsync(IRandomAccessStreamReference const& modelStream);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<LearningModelPreview> LoadModelFromStreamAsync(IRandomAccessStreamReference modelStream);
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("Use ILearningModelStatics instead of ILearningModelPreviewStatics. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")]
public static IAsyncOperation<LearningModelPreview> LoadModelFromStreamAsync(IRandomAccessStreamReference modelStream);
function loadModelFromStreamAsync(modelStream)
Public Shared Function LoadModelFromStreamAsync (modelStream As IRandomAccessStreamReference) As IAsyncOperation(Of LearningModelPreview)

Paramètres

modelStream
IRandomAccessStreamReference

Flux de fichiers pour le modèle.

Retours

Renvoie un LearningModelPreview.

Attributs

Remarques

Avertissement

Il s’agit d’une API déconseillée. Utilisez plutôt l’espace de noms Windows.AI.MachineLearning .

S’applique à