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

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

#include <numpy_bridge.hpp>

Public Attributes

OwnedTensor owned_tensor
 Keeps data alive.
 
std::vector< int64_t > shape
 DLTensor.shape points here.
 

Detailed Description

Context stored in DLManagedTensor.manager_ctx for owning exports.

Takes ownership of the OwnedTensor's data so that it stays alive until the DLPack consumer calls the deleter. This enables true zero-copy ownership transfer from Signet to DLPack consumers.

Definition at line 265 of file numpy_bridge.hpp.

Member Data Documentation

◆ owned_tensor

OwnedTensor signet::forge::detail::DLPackOwnedCtx::owned_tensor

Keeps data alive.

Definition at line 266 of file numpy_bridge.hpp.

◆ shape

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

DLTensor.shape points here.

Definition at line 267 of file numpy_bridge.hpp.


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