holoscan::DLManagedTensorContext
Context object holding a versioned DLPack tensor and a reference to its backing memory.
The Tensor class wraps this struct. The wrapped tensor is a DLManagedTensorVersioned so the Tensor can carry DLPack version and flags (e.g. read-only / copied). memory_reference keeps the data alive for as long as the context exists; it typically holds a DLManagedMemoryBuffer / DLManagedMemoryBufferVersioned whose destructor invokes the source tensor’s DLPack deleter, or a Holoscan-owned stream-aware reference. dl_shape / dl_strides own the shape/stride arrays the wrapped DLTensor points at. A private control block makes authority and transient read-lease state common to every Tensor wrapper over this context.
Vendored from nvidia::gxf::DLManagedTensorContext to remove the GXF dependency.
Constructors
DLManagedTensorContext
Create a context with a private local-writable access-authority control block.