TensorFeatureDescriptor 类  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
张量是值的多维数组。
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 : ILearningModelFeatureDescriptorPublic NotInheritable Class TensorFeatureDescriptor
Implements ILearningModelFeatureDescriptor- 继承
- 属性
- 实现
Windows 要求
| 设备系列 | 
							Windows 10, version 1809 (在 10.0.17763.0 中引入) | 
| API contract | 
							Windows.AI.MachineLearning.MachineLearningContract (在 v1.0 中引入) | 
注解
张量是值的多维数组。
张量布局以行为主,紧密打包的连续数据表示每个维度。 张量的总大小是每个维度大小的乘积。
Windows Server
若要在 Windows Server 上使用此 API,必须使用带桌面体验的 Windows Server 2019。
线程安全
此 API 是线程安全的。
属性
| Description | 描述此功能在模型中的用途。 | 
| IsRequired | 如果为 true,则必须在调用 LearningModelSession.Evaluate 之前将值绑定到此功能。 | 
| Kind | 特征类型;使用此来了解要使用的派生类。 | 
| Name | 用于将值绑定到此功能的名称。 | 
| Shape | 返回每个维度的计数和大小。 | 
| TensorKind | 返回张量数据类型。 |