Bagikan melalui


LearningModelDescriptionPreview.InputFeatures Properti

Definisi

Dihentikan. Mendapatkan deskripsi input untuk model.

public:
 property IIterable<ILearningModelVariableDescriptorPreview ^> ^ InputFeatures { IIterable<ILearningModelVariableDescriptorPreview ^> ^ get(); };
IIterable<ILearningModelVariableDescriptorPreview> InputFeatures();
/// [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")]
IIterable<ILearningModelVariableDescriptorPreview> InputFeatures();
public IEnumerable<ILearningModelVariableDescriptorPreview> InputFeatures { get; }
public IEnumerable<ILearningModelVariableDescriptorPreview> InputFeatures { [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 iIterable = learningModelDescriptionPreview.inputFeatures;
Public ReadOnly Property InputFeatures As IEnumerable(Of ILearningModelVariableDescriptorPreview)

Nilai Properti

Deskripsi input untuk model, dikunci berdasarkan nama input.

Atribut

Contoh

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

	// Retrieve the first input feature which is an image
    ILearningModelVariableDescriptorPreview inputImageFeatureDescription = model.Description.InputFeatures.First(feature=>feature.ModelFeatureKind == LearningModelFeatureKindPreview.Image);

 }

Keterangan

Peringatan

Ini adalah API yang tidak digunakan lagi. Silakan gunakan namespace Windows.AI.MachineLearning sebagai gantinya.

Berlaku untuk