Partager via


LearningModelDescriptionPreview.InputFeatures Propriété

Définition

Action déconseillée. Obtient les descriptions d’entrée du modèle.

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)

Valeur de propriété

Descriptions d’entrée pour le modèle, clé par nom d’entrée.

Attributs

Exemples

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

 }

Remarques

Avertissement

Il s’agit d’une API déconseillée. Utilisez plutôt l’espace de noms Windows.AI.MachineLearning .

S’applique à