LearningModelDescriptionPreview.OutputFeatures Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Deprecated. Gets the output descriptions of the 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)
Property Value
The output descriptions for the model, keyed by the name of the output.
- Attributes
Examples
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;
}
Remarks
Warning
This is a deprecated API. Please use the Windows.AI.MachineLearning namespace instead.