Caffe2 - C++ API
A deep learning, cross platform ML framework
Data Fields
DLDataType Struct Reference

The data type the tensor can hold. More...

#include <dlpack.h>

Data Fields

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.
 
uint8_t bits
 Number of bits, common choices are 8, 16, 32.
 
uint16_t lanes
 Number of lanes in the type, used for vector types.
 

Detailed Description

The data type the tensor can hold.

Examples

Definition at line 76 of file dlpack.h.


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