Compartilhar via


LearningModelDescriptionPreview.Name Propriedade

Definição

Preterido. Obtém o nome do modelo.

public:
 property Platform::String ^ Name { Platform::String ^ get(); };
winrt::hstring Name();
/// [get: Windows.Foundation.Metadata.Deprecated("Use ILearningModel instead of ILearningModelDescriptionPreview. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")]
winrt::hstring Name();
public string Name { get; }
public string Name { [Windows.Foundation.Metadata.Deprecated("Use ILearningModel instead of ILearningModelDescriptionPreview. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")] get; }
var string = learningModelDescriptionPreview.name;
Public ReadOnly Property Name As String

Valor da propriedade

String

Platform::String

winrt::hstring

O nome do modelo.

Atributos

Exemplos

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

	Console.WriteLine($"Model Name: {model.Description.Name}.");
}

Comentários

Aviso

Essa é uma API preterida. Use o namespace Windows.AI.MachineLearning .

Aplica-se a