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

◆ windowed_kernel_diagnose()

std::string MayaFlux::Yantra::windowed_kernel_diagnose ( const WindowedKernelShape & shape)
inlinenodiscard

Why a shape cannot be used, empty when it can.

Definition at line 97 of file WindowedKernelAnalyzer.hpp.

98{
99 if (shape.inputs == 0 || shape.inputs > windowed_kernel_max_inputs) {
100 return "A windowed kernel reads 1 to " + std::to_string(windowed_kernel_max_inputs) + " inputs";
101 }
102 if (shape.lanes == 0 || shape.lanes > windowed_kernel_max_lanes || (shape.lanes & (shape.lanes - 1)) != 0) {
103 return "Lanes must be 1 or a power of two up to " + std::to_string(windowed_kernel_max_lanes);
104 }
105 return {};
106}
constexpr uint32_t windowed_kernel_max_inputs
constexpr uint32_t windowed_kernel_max_lanes

References MayaFlux::Yantra::WindowedKernelShape::inputs, MayaFlux::Yantra::WindowedKernelShape::lanes, windowed_kernel_max_inputs, and windowed_kernel_max_lanes.

Referenced by MayaFlux::Yantra::WindowedKernelAnalyzer< std::vector< Kakshya::DataVariant >, Eigen::MatrixXd >::validate_config().

Here is the caller graph for this function: