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

◆ copy()

std::optional< TensorData > MayaFlux::Kakshya::TensorImport::copy ( ) const
nodiscard

Dense owning copy, independent of the producer.

Definition at line 291 of file TensorDLPack.cpp.

292{
293 const auto view = access();
294 return view ? TensorData::copy_of(*view) : std::nullopt;
295}
static std::optional< TensorData > copy_of(const TensorAccess &view)
Dense C-ordered copy of any tensor view.
Definition Tensor.cpp:126
std::optional< TensorAccess > access() const
Borrow the producer's memory.

References access(), and MayaFlux::Kakshya::TensorData::copy_of().

Here is the call graph for this function: