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

◆ element_count()

size_t MayaFlux::Yantra::TensorKernels::detail::element_count ( const std::vector< uint64_t > & shape)
inlinenodiscard

Definition at line 40 of file Yantra/Executors/TensorKernels/Weights.hpp.

41 {
42 size_t count = 1;
43 for (const uint64_t extent : shape) {
44 count *= extent;
45 }
46 return count;
47 }

Referenced by MayaFlux::Yantra::TensorKernels::pack_weights().

Here is the caller graph for this function: