|
Mila 0.13.48
Deep Neural Network Library
|
Device-agnostic host type mapping for abstract TensorDataType enumeration. More...
Namespaces | |
| namespace | Mila |
| Mila main API namespace. | |
| namespace | Mila::Dnn |
Typedefs | |
| template<TensorDataType TDataType> | |
| using | Mila::Dnn::host_type_t = typename TensorHostTypeMap<TDataType>::host_type |
| Convenience alias for accessing host type mapping. | |
Variables | |
| template<TensorDataType TDataType> | |
| constexpr bool | Mila::Dnn::is_host_float_type = std::is_floating_point_v<host_type_t<TDataType>> |
| Checks if a TensorDataType maps to a floating-point host type. | |
| template<TensorDataType TDataType> | |
| constexpr bool | Mila::Dnn::is_host_integer_type = std::is_integral_v<host_type_t<TDataType>> |
| Checks if a TensorDataType maps to an integer host type. | |
Device-agnostic host type mapping for abstract TensorDataType enumeration.
This module provides centralized mapping from abstract tensor data types to appropriate host-compatible C++ types for conversion and host-side processing. These mappings are device-agnostic and define the standard host representation for each abstract tensor data type across all compute backends.
Key architectural principles:
Usage patterns:
Design rationale: