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

◆ gpu_view()

TensorGpuView MayaFlux::Kakshya::TensorAccess::gpu_view ( ) const
nodiscardnoexcept

Upload description for a dense tensor.

Returns
Pointer, bytes and format; data is null for a strided layout.

Definition at line 53 of file TensorAccess.cpp.

54{
55 const auto raw = bytes();
56 return { .data = raw.data(), .bytes = raw.size(), .format = m_spec.dtype.gpu_format() };
57}
std::span< const std::byte > bytes() const noexcept
Bytes of the elements when they are dense in C order.

References bytes(), and m_spec.

Here is the call graph for this function: