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

◆ get_frame_size()

uint64_t MayaFlux::Kakshya::TensorContainer::get_frame_size ( ) const
nodiscardoverridevirtual

Elements in one slice along the leading axis.

Implements MayaFlux::Kakshya::NDDataContainer< TensorData >.

Definition at line 75 of file TensorContainer.cpp.

76{
77 const auto& shape = m_data.spec().shape;
78 if (shape.empty())
79 return 0;
80 return std::accumulate(shape.begin() + 1, shape.end(), uint64_t { 1 }, std::multiplies<> {});
81}

References m_data.