29inline constexpr const char*
add_shader =
"nn_add.comp.spv";
174static_assert(
sizeof(
Conv1dPC) == 72);
177static_assert(
sizeof(
AddPC) == 32);
183static_assert(
sizeof(
LstmPC) == 64);
constexpr uint32_t normalize_flag_affine_outer
nn_normalize flag bit: weight and bias are indexed by the outer index instead of the position along e...
constexpr uint32_t normalize_flag_affine
nn_normalize flag bit: multiply by weight and add bias.
constexpr uint32_t conv1d_activation_shift
nn_conv1d and nn_conv1d_grouped flag bits 2 and 3: the output activation, 0 none, 1 ReLU,...
constexpr uint32_t max_groups_per_axis
Most workgroups the stages put on one axis; a larger dispatch continues along y.
constexpr const char * attention_mix_shader
constexpr const char * conv1d_shader
constexpr const char * softmax_shader
constexpr const char * frame_audio_shader
constexpr const char * normalize_shader
constexpr const char * grouped_conv1d_shader
constexpr uint32_t element_workgroup
Invocations per workgroup of the element-wise kernels.
constexpr uint32_t normalize_flag_apply
nn_normalize flag bit: write the normalised values instead of measuring the rows.
constexpr uint32_t conv1d_flag_bias
nn_conv1d flag bit: add the bias.
constexpr uint32_t normalize_activation_shift
nn_normalize flag bits 3 and 4: the output activation, 0 none, 3 GELU.
constexpr const char * magnitude_shader
constexpr const char * add_shader
constexpr const char * attention_scores_shader
constexpr uint32_t lstm_max_hidden
Widest hidden state nn_lstm_sequence supports.
constexpr uint32_t lstm_workgroup
Invocations of the one workgroup nn_lstm_sequence runs in.
constexpr const char * lstm_sequence_shader
constexpr uint32_t conv1d_flag_relu_input
nn_conv1d flag bit: apply ReLU to the input.
Push constants of nn_add.
Push constants of nn_attention_mix.
Push constants of nn_attention_scores.
Push constants of nn_conv1d.
Push constants of nn_frame_audio.
Push constants of nn_conv1d_grouped.
Push constants of nn_lstm_sequence.
Push constants of nn_magnitude.
Push constants of nn_normalize.
Push constants of nn_softmax.