Freigeben über


LearningModelDescriptionPreview.OutputFeatures Eigenschaft

Definition

Veraltet. Ruft die Ausgabebeschreibungen des Modells ab.

public:
 property IIterable<ILearningModelVariableDescriptorPreview ^> ^ OutputFeatures { IIterable<ILearningModelVariableDescriptorPreview ^> ^ get(); };
IIterable<ILearningModelVariableDescriptorPreview> OutputFeatures();
/// [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> OutputFeatures();
public IEnumerable<ILearningModelVariableDescriptorPreview> OutputFeatures { get; }
public IEnumerable<ILearningModelVariableDescriptorPreview> OutputFeatures { [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.outputFeatures;
Public ReadOnly Property OutputFeatures As IEnumerable(Of ILearningModelVariableDescriptorPreview)

Eigenschaftswert

Die Ausgabebeschreibungen für das Modell, wobei der Name der Ausgabe angegeben ist.

Attribute

Beispiele

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

	// Retrieve the model output variable description (as a tensor)
    ILearningModelVariableDescriptorPreview outputTensorDescription = outputFeatures.FirstOrDefault(feature => feature.ModelFeatureKind == LearningModelFeatureKindPreview.Tensor) as TensorVariableDescriptorPreview;

 }

Hinweise

Warnung

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

Gilt für: