DML_FEATURE 枚举 (directml.h)

定义一组可从 DirectML 设备查询的可选特性和功能。 请参阅 IDMLDevice::CheckFeatureSupport

语法

typedef enum DML_FEATURE {
  DML_FEATURE_TENSOR_DATA_TYPE_SUPPORT,
  DML_FEATURE_FEATURE_LEVELS
} ;

常量

 
DML_FEATURE_TENSOR_DATA_TYPE_SUPPORT
允许查询张量数据类型支持。 查询类型为 DML_FEATURE_QUERY_TENSOR_DATA_TYPE_SUPPORT,支持数据类型 为DML_FEATURE_DATA_TENSOR_DATA_TYPE_SUPPORT
DML_FEATURE_FEATURE_LEVELS
允许查询设备支持的功能级别。 查询类型为 DML_FEATURE_QUERY_FEATURE_LEVELS,支持数据类型 为DML_FEATURE_DATA_FEATURE_LEVELS

要求

   
标头 directml.h

请参阅