Compartilhar via


LearningModelPreview.Description Propriedade

Definição

Preterido. Obtém os metadados descritivos para o modelo de machine learning treinado.

public:
 property LearningModelDescriptionPreview ^ Description { LearningModelDescriptionPreview ^ get(); };
LearningModelDescriptionPreview Description();
/// [get: Windows.Foundation.Metadata.Deprecated("Use ILearningModel instead of ILearningModelPreview. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")]
LearningModelDescriptionPreview Description();
public LearningModelDescriptionPreview Description { get; }
public LearningModelDescriptionPreview Description { [Windows.Foundation.Metadata.Deprecated("Use ILearningModel instead of ILearningModelPreview. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")] get; }
var learningModelDescriptionPreview = learningModelPreview.description;
Public ReadOnly Property Description As LearningModelDescriptionPreview

Valor da propriedade

Os metadados descritivos para o modelo de machine learning.

Atributos

Exemplos

public async Task LoadModel()
{
    var modelFile = await Windows.ApplicationModel.Package.Current.InstalledLocation.GetFileAsync("model.onnx");
    LearningModelPreview model = await LearningModelPreview.LoadModelFromStorageFileAsync(modelFile);

    // Confirm the version of the model is 1
    if (model.Description.Version != 1)
    {
		...
    }
}

Comentários

Aviso

Essa é uma API preterida. Em vez disso, use o namespace Windows.AI.MachineLearning .

Aplica-se a