Jaa


TensorFeatureDescriptor Class

Definition

Tensors are multi-dimensional arrays of values.

public ref class TensorFeatureDescriptor sealed : ILearningModelFeatureDescriptor
/// [Windows.Foundation.Metadata.ContractVersion(Windows.AI.MachineLearning.MachineLearningContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class TensorFeatureDescriptor final : ILearningModelFeatureDescriptor
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.AI.MachineLearning.MachineLearningContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class TensorFeatureDescriptor : ILearningModelFeatureDescriptor
Public NotInheritable Class TensorFeatureDescriptor
Implements ILearningModelFeatureDescriptor
Inheritance
Object Platform::Object IInspectable TensorFeatureDescriptor
Attributes
Implements

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.AI.MachineLearning.MachineLearningContract (introduced in v1.0)

Remarks

A tensor is a multi-dimensional array of values.

The layout of tensors is row-major, with tightly packed contiguous data representing each dimension. The total size of a tensor is the product of the size of each dimension.

Windows Server

To use this API on Windows Server, you must use Windows Server 2019 with Desktop Experience.

Thread safety

This API is thread-safe.

Properties

Description

A description of what this feature is used for in the model.

IsRequired

If true, you must bind a value to this feature before calling LearningModelSession.Evaluate.

Kind

The kind of feature; use this to know which derived class to use.

Name

The name you use to bind values to this feature.

Shape

Returns the count and size of each dimension.

TensorKind

Returns the data type of the tensor.

Applies to

See also