Template struct for mapping a Device Type to its corresponding enum value.
More...
#include <tensor_types.h>
template<typename
T>
struct container::DeviceTypeToEnum< T >
Template struct for mapping a Device Type to its corresponding enum value.
- Parameters
-
T | The DataType to map to its enum value. |
- Returns
- The enumeration value corresponding to the data type. This method uses template specialization to map each supported data type to its corresponding enumeration value. If the template argument T is not a supported data type, this method will cause a compile-time error. Example usage: DataTypeToEnum<float>::value; // Returns DataType::DT_FLOAT
◆ value
The documentation for this struct was generated from the following file:
- /home/runner/work/abacus-develop/abacus-develop/source/source_base/module_container/ATen/core/tensor_types.h