Bagikan melalui


LearningModelDescriptionPreview.OutputFeatures Properti

Definisi

Dihentikan. Mendapatkan deskripsi output model.

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)

Nilai Properti

Deskripsi output untuk model, dikunci dengan nama output.

Atribut

Contoh

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;

 }

Keterangan

Peringatan

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

Berlaku untuk