![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
The data type the tensor can hold. The data type is assumed to follow the native endian-ness. An explicit error message should be raised when attempting to export an array with non-native endianness. More...
#include <DLPack.h>

Public Attributes | |
| uint8_t | code |
| Type code of base types. We keep it uint8_t instead of DLDataTypeCode for minimal memory footprint, but the value should be one of DLDataTypeCode enum values. More... | |
| uint8_t | bits |
| Number of bits, common choices are 8, 16, 32. More... | |
| uint16_t | lanes |
| Number of lanes in the type, used for vector types. More... | |
The data type the tensor can hold. The data type is assumed to follow the native endian-ness. An explicit error message should be raised when attempting to export an array with non-native endianness.
Examples
When a sub-byte type is packed, DLPack requires the data to be in little bit-endian, i.e., for a packed data set D ((D >> (i * bits)) && bit_mask) stores the i-th element.
| uint8_t DLDataType::bits |
Number of bits, common choices are 8, 16, 32.
Definition at line 236 of file DLPack.h.
Referenced by cloudViewer::core::DLDataTypeToDtype().
| uint8_t DLDataType::code |
Type code of base types. We keep it uint8_t instead of DLDataTypeCode for minimal memory footprint, but the value should be one of DLDataTypeCode enum values.
Definition at line 232 of file DLPack.h.
Referenced by cloudViewer::core::DLDataTypeToDtype().
| uint16_t DLDataType::lanes |
Number of lanes in the type, used for vector types.
Definition at line 238 of file DLPack.h.
Referenced by cloudViewer::core::DLDataTypeToDtype().