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

◆ bind_scores()

template<ComputeData InputType = Eigen::MatrixXd, ComputeData OutputType = std::vector<std::vector<double>>>
void MayaFlux::Yantra::IntervalExtractor< InputType, OutputType >::bind_scores ( size_t channel,
const GpuDispatchCore & source,
uint32_t set,
size_t binding )
inline

Read the scores of a channel from a device buffer instead of uploading them.

The buffer holds float32 scores and belongs to a context on the same recording, for instance SileroVadModel::probability_buffer. The scan then reads it in place. A channel that gates others is bound the same way: its scores are the gate. Run it with submit_resident or extract_resident.

Parameters
channelChannel whose scores the buffer holds.
sourceContext that owns the buffer.
setSet of the buffer.
bindingBinding of the buffer.
Exceptions
std::invalid_argumentwhen the buffer is missing, not float32 sized, or on another recording.

Definition at line 359 of file IntervalExtractor.hpp.

360 {
363 if (m_resident.size() <= channel) {
364 m_resident.resize(channel + 1, false);
365 }
366 m_resident[channel] = true;
367 }
std::unique_ptr< ShaderExecutionContext<> > m_context
static size_t binding_of(size_t channel, Slot slot)
Finds where each score sequence is engaged, on the GPU, as a stream.
enum MayaFlux::Portal::Graphics::GpuBufferBinding::ElementType FLOAT32