|
Mila 0.13.48
Deep Neural Network Library
|
CPU-specific traits for abstract tensor data types. More...
Public Types | |
| template<TensorDataType TDataType> | |
| using | native_type |
| Maps abstract tensor data types to concrete CPU native types. | |
Static Public Member Functions | |
| template<TensorDataType TDataType> | |
| static consteval bool | supports () |
| Validates CPU support for abstract tensor data types. | |
CPU-specific traits for abstract tensor data types.
Provides device-specific characteristics and native type mappings for CPU-supported tensor data types, enabling type-safe value initialization and host-specific optimizations.
| using Mila::Dnn::CpuTensorDataTypeTraits::native_type |
Maps abstract tensor data types to concrete CPU native types.
Provides compile-time mapping from abstract TensorDataType enumeration to concrete standard C++ types supported on CPU, enabling type-safe value initialization and host operations.
| TDataType | Abstract tensor data type to map |
|
inlinestaticconsteval |
Validates CPU support for abstract tensor data types.
Determines whether CPU devices and memory resources support the specified abstract tensor data type. CPU typically supports standard C++ types but not device-specific precision formats.
| TDataType | Abstract tensor data type to validate |