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

◆ add_stage()

DependencyStage MayaFlux::Yantra::TensorKernels::add_stage ( uint64_t a,
uint64_t b,
uint64_t dst,
uint32_t count )
inlinenodiscard

One nn_add dispatch: the element-wise sum of two sequences of count floats.

dst may be a or b.

Exceptions
std::invalid_argumentWhen count is 0.

Definition at line 197 of file Stages.hpp.

198{
199 if (count == 0) {
200 detail::refuse("Add needs at least one element");
201 }
202 const AddPC pc { .a = a, .b = b, .dst = dst, .count = count, .reserved = 0 };
203 return detail::make_grid_stage(add_shader, pc, count);
204}
void refuse(std::string_view message)
Definition Layers.hpp:74
DependencyStage make_grid_stage(const char *shader, const PC &pc, size_t invocations)
Definition Stages.hpp:38
constexpr const char * add_shader
Definition Layouts.hpp:29

References add_shader, MayaFlux::Yantra::TensorKernels::detail::make_grid_stage(), and MayaFlux::Yantra::TensorKernels::detail::refuse().

Referenced by MayaFlux::Yantra::HubertPhonemeModel::Impl::run().

Here is the call graph for this function:
Here is the caller graph for this function: