dlpack Namespace
Minimal DLPack-shaped structs for zero-copy interop with NumPy/PyTorch. More...
Definition
Classes Index
| struct | DLDataType |
|
DLPack scalar dtype: code + bit width + SIMD lane count. More... | |
| struct | DLDevice |
|
DLPack device descriptor: type + numeric ID. More... | |
| struct | DLManagedTensor |
|
DLPack managed tensor: owning wrapper that calls deleter on destruction. More... | |
| struct | DLTensor |
|
DLPack non-owning tensor view: pointer + shape + strides + dtype + device. More... | |
Enumerations Index
| enum class | DLDeviceType : int { ... } |
|
DLPack device type. Currently CPU-only; GPU/accelerator variants can be added later. More... | |
| enum | DLDataTypeCode : uint8_t { ... } |
|
DLPack data-type category (signed int / unsigned int / floating-point). More... | |
Description
Minimal DLPack-shaped structs for zero-copy interop with NumPy/PyTorch.
Mirrors the standard DLPack interchange types without taking a dependency on the dlpack header itself. Used by the Python binding layer (pyneat) to expose tensors via the __dlpack__ protocol. CPU-only today; device variants can be added without breaking the ABI.
Enumerations
DLDataTypeCode
|
DLPack data-type category (signed int / unsigned int / floating-point).
Definition at line 42 of file TensorTypes.h.
DLDeviceType
| strong |
DLPack device type. Currently CPU-only; GPU/accelerator variants can be added later.
Definition at line 31 of file TensorTypes.h.
The documentation for this namespace was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.