MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ access()

std::optional< TensorAccess > MayaFlux::Kakshya::TensorImport::access ( ) const
nodiscard

Borrow the producer's memory.

Definition at line 286 of file TensorDLPack.cpp.

287{
289}
std::optional< TensorAccess > as_tensor_access(std::span< const std::byte > storage, const TensorSpec &spec, bool read_only)
Validate and borrow tensor memory.

References MayaFlux::Kakshya::as_tensor_access(), m_data, m_read_only, m_size, and m_spec.

Referenced by copy(), take(), and take().

Here is the call graph for this function:
Here is the caller graph for this function: