![]() |
Signet Forge 0.1.0
C++20 Parquet library with AI-native extensions
|
DEMO |
DLPack tensor descriptor (non-owning). More...
#include <numpy_bridge.hpp>
Public Attributes | |
| void * | data |
| Pointer to the start of tensor data. | |
| DLDevice | device |
| Device where data resides (CPU, CUDA, etc.) | |
| int32_t | ndim |
| Number of dimensions (must be > 0) | |
| DLDataType | dtype |
| Element data type descriptor. | |
| int64_t * | shape |
| Shape array with ndim elements. | |
| int64_t * | strides |
| Stride array in elements (nullptr = C-contiguous) | |
| uint64_t | byte_offset |
| Byte offset from data pointer to first element. | |
DLPack tensor descriptor (non-owning).
Describes the layout and location of a multi-dimensional tensor. Does not own the data or shape/strides arrays – those are managed by the enclosing DLManagedTensor's deleter callback.
Definition at line 82 of file numpy_bridge.hpp.
| uint64_t signet::forge::DLTensor::byte_offset |
Byte offset from data pointer to first element.
Definition at line 89 of file numpy_bridge.hpp.
| void* signet::forge::DLTensor::data |
Pointer to the start of tensor data.
Definition at line 83 of file numpy_bridge.hpp.
| DLDevice signet::forge::DLTensor::device |
Device where data resides (CPU, CUDA, etc.)
Definition at line 84 of file numpy_bridge.hpp.
| DLDataType signet::forge::DLTensor::dtype |
Element data type descriptor.
Definition at line 86 of file numpy_bridge.hpp.
| int32_t signet::forge::DLTensor::ndim |
Number of dimensions (must be > 0)
Definition at line 85 of file numpy_bridge.hpp.
| int64_t* signet::forge::DLTensor::shape |
Shape array with ndim elements.
Definition at line 87 of file numpy_bridge.hpp.
| int64_t* signet::forge::DLTensor::strides |
Stride array in elements (nullptr = C-contiguous)
Definition at line 88 of file numpy_bridge.hpp.