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

◆ hidden_states()

std::vector< float > MayaFlux::Yantra::HubertPhonemeModel::hidden_states ( )
nodiscard

The state before the final layer for every frame of the latest utterance.

Returns
resident_frames() * hidden_width values, frame after frame.

Definition at line 450 of file HubertPhonemeModel.cpp.

451{
452 const size_t frames = m_impl->resident;
453 if (frames == 0) {
454 return {};
455 }
456 std::vector<float> rows(hidden_width * frames);
457 m_impl->context->download_shared(0, Hidden, rows.data(), rows.size() * sizeof(float));
458 return frame_major(rows, hidden_width, frames);
459}
static constexpr uint32_t hidden_width
Width of the state before the final layer.

References hidden_width, and m_impl.

Referenced by MayaFlux::Yantra::PhonemeAnalyzer< std::vector< Kakshya::DataVariant >, Eigen::MatrixXd >::analyze_implementation(), and operator=().

Here is the caller graph for this function: