LearningModelFeatureKind Enum   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
机器学习模型的输入和输出特征类型。
public enum class LearningModelFeatureKind/// [Windows.Foundation.Metadata.ContractVersion(Windows.AI.MachineLearning.MachineLearningContract, 65536)]
enum class LearningModelFeatureKind[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.AI.MachineLearning.MachineLearningContract), 65536)]
public enum LearningModelFeatureKindvar value = Windows.AI.MachineLearning.LearningModelFeatureKind.tensorPublic Enum LearningModelFeatureKind- 继承
- 
				LearningModelFeatureKind
- 属性
Windows 要求
| 设备系列 | 
							Windows 10, version 1809 (在 10.0.17763.0 中引入) | 
| API contract | 
							Windows.AI.MachineLearning.MachineLearningContract (在 v1.0 中引入) | 
字段
| 名称 | 值 | 说明 | 
|---|---|---|
| Image | 3 | 此功能是一个图像,因此请使用 ImageFeatureDescriptor。 | 
| Map | 2 | 此功能是一个映射,因此请使用 MapFeatureDescriptor。 | 
| Sequence | 1 | 此功能是一个序列,因此请使用 SequenceFeatureDescriptor。 | 
| Tensor | 0 | 此功能是张量,因此请使用 TensorFeatureDescriptor。 | 
注解
其中每个都映射到相应的特征描述符,该描述符可用于详细了解如何将特征传入和传出模型。
Windows Server
若要在 Windows Server 上使用此 API,必须使用带桌面体验的 Windows Server 2019。
线程安全
此 API 是线程安全的。