Freigeben über


LearningModelDescriptionPreview.InputFeatures Eigenschaft

Definition

Veraltet. Ruft die Eingabebeschreibungen für das Modell ab.

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)

Eigenschaftswert

Die Eingabebeschreibungen für das Modell, getschlüsselt nach Dem Namen der Eingabe.

Attribute

Beispiele

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);

 }

Hinweise

Warnung

Dies ist eine veraltete API. Verwenden Sie stattdessen den Windows.AI.MachineLearning-Namespace .

Gilt für: