Mila 0.13.48
Deep Neural Network Library
Loading...
Searching...
No Matches
Mila::Dnn::TensorDataTypeTraits< TDataType > Struct Template Referenceexport

Compile-time traits for TensorDataType enumeration values. More...

Detailed Description

template<TensorDataType TDataType>
struct Mila::Dnn::TensorDataTypeTraits< TDataType >

Compile-time traits for TensorDataType enumeration values.

Primary template providing compile-time characteristics for each abstract tensor data type. Specializations define properties including storage size, alignment requirements, device compatibility, and type classification.

This traits system enables:

  • Compile-time memory layout calculations
  • Device compatibility validation
  • Type-safe tensor operations
  • Optimal memory allocation strategies
Template Parameters
TDataTypeThe TensorDataType enumeration value to query
Note
This is a primary template that must be specialized for each supported type
Accessing an unspecialized version will result in compilation error
See also
TensorDataType for supported enumeration values

The documentation for this struct was generated from the following file: