DLTensor Struct
DLPack non-owning tensor view: pointer + shape + strides + dtype + device. More...
Declaration
Included Headers
Public Member Attributes Index
| void * | data |
|
Raw data pointer (aligned per DLPack spec). More... | |
| DLDevice | device |
|
Where the data lives. More... | |
| int | ndim |
|
Number of dimensions. More... | |
| DLDataType | dtype |
|
Element dtype. More... | |
| int64_t * | shape |
|
Per-dimension sizes (length ndim). More... | |
| int64_t * | strides |
|
Per-dimension strides in elements (may be null for compact row-major). More... | |
| uint64_t | byte_offset |
|
Offset from data in bytes to the first element. More... | |
Description
DLPack non-owning tensor view: pointer + shape + strides + dtype + device.
Definition at line 56 of file TensorTypes.h.
Public Member Attributes
byte_offset
|
Offset from data in bytes to the first element.
Definition at line 63 of file TensorTypes.h.
data
|
Raw data pointer (aligned per DLPack spec).
Definition at line 57 of file TensorTypes.h.
device
|
dtype
|
ndim
|
shape
|
strides
|
Per-dimension strides in elements (may be null for compact row-major).
Definition at line 62 of file TensorTypes.h.
The documentation for this struct was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.