Signet Forge 0.1.0
C++20 Parquet library with AI-native extensions
DEMO
Loading...
Searching...
No Matches
signet::forge::detail::DLPackViewCtx Struct Reference

Context stored in DLManagedTensor.manager_ctx for non-owning exports. More...

#include <numpy_bridge.hpp>

Public Attributes

std::vector< int64_t > shape
 Shape array; DLTensor.shape points here.
 

Detailed Description

Context stored in DLManagedTensor.manager_ctx for non-owning exports.

Holds the shape array that the DLTensor.shape pointer references. The deleter callback frees this context (and thus the shape vector) when the consumer is done with the DLManagedTensor.

Note
Does NOT own the tensor data – the source TensorView must outlive the DLManagedTensor.

Definition at line 255 of file numpy_bridge.hpp.

Member Data Documentation

◆ shape

std::vector<int64_t> signet::forge::detail::DLPackViewCtx::shape

Shape array; DLTensor.shape points here.

Definition at line 256 of file numpy_bridge.hpp.


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