|
Mila 0.13.48
Deep Neural Network Library
|
Functions | |
| std::string | formatBytes (size_t bytes) |
| template<TensorDataType TDataType> | |
| constexpr size_t | getStorageSize (size_t logical_size) |
| Calculates storage size in bytes for given logical element count. | |
|
inline |
|
constexpr |
Calculates storage size in bytes for given logical element count.
Computes the required storage bytes for a given number of logical elements of the specified tensor data type, handling potential overflow conditions.
| TDataType | Abstract tensor data type from TensorDataType enumeration |
| logical_size | Number of logical elements |
| std::overflow_error | If calculation would overflow |