다음을 통해 공유


LearningModelDescriptionPreview.Author 속성

정의

더 이상 사용되지 않습니다. 모델에서 작성자 정보를 가져옵니다.

public:
 property Platform::String ^ Author { Platform::String ^ get(); };
winrt::hstring Author();
/// [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 Author();
public string Author { get; }
public string Author { [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.author;
Public ReadOnly Property Author As String

속성 값

String

Platform::String

winrt::hstring

모델의 작성자 정보입니다.

특성

예제

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

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

설명

경고

더 이상 사용되지 않는 API입니다. 대신 Windows.AI.MachineLearning 네임스페이스를 사용하세요.

적용 대상