Skip to main content

DLTensor Struct

DLPack non-owning tensor view: pointer + shape + strides + dtype + device. More...

Declaration

struct simaai::neat::dlpack::DLTensor { ... }

Included Headers

#include <TensorTypes.h>

Public Member Attributes Index

void *data

Raw data pointer (aligned per DLPack spec). More...

DLDevicedevice

Where the data lives. More...

intndim

Number of dimensions. More...

DLDataTypedtype

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_tbyte_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

uint64_t simaai::neat::dlpack::DLTensor::byte_offset

Offset from data in bytes to the first element.

Definition at line 63 of file TensorTypes.h.

63 uint64_t byte_offset;

data

void* simaai::neat::dlpack::DLTensor::data

Raw data pointer (aligned per DLPack spec).

Definition at line 57 of file TensorTypes.h.

57 void* data;

device

DLDevice simaai::neat::dlpack::DLTensor::device

Where the data lives.

Definition at line 58 of file TensorTypes.h.

dtype

DLDataType simaai::neat::dlpack::DLTensor::dtype

Element dtype.

Definition at line 60 of file TensorTypes.h.

ndim

int simaai::neat::dlpack::DLTensor::ndim

Number of dimensions.

Definition at line 59 of file TensorTypes.h.

59 int ndim;

shape

int64_t* simaai::neat::dlpack::DLTensor::shape

Per-dimension sizes (length ndim).

Definition at line 61 of file TensorTypes.h.

61 int64_t* shape;

strides

int64_t* simaai::neat::dlpack::DLTensor::strides

Per-dimension strides in elements (may be null for compact row-major).

Definition at line 62 of file TensorTypes.h.

62 int64_t* strides;

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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.