Go to the source code of this file.
Functions | |
| void | recurrent_norm_gate_backward (const float *d_out, const float *x, const float *gate, const float *weight, float *d_x, float *d_gate, float *d_weight, int rows, int num_heads, int head_dim, float eps) |
| void | recurrent_norm_gate_forward (const float *x, const float *gate, const float *weight, float *out, int rows, int num_heads, int head_dim, float eps) |
| void | recurrent_norm_gate_llama_avx2_forward (const float *x, const float *gate, const float *weight, float *out, int rows, int num_heads, int head_dim, float eps) |
| void | recurrent_norm_gate_pytorch_bf16_storage (const float *x, const float *gate, const float *weight, float *out, int rows, int num_heads, int head_dim, float eps) |
| void | recurrent_norm_sigmoid_gate_llama_avx2_forward (const float *x, const float *gate, const float *weight, float *out, int rows, int num_heads, int head_dim, float eps) |
| void | recurrent_norm_sigmoid_gate_pytorch_bf16_storage (const float *x, const float *gate, const float *weight, float *out, int rows, int num_heads, int head_dim, float eps) |
| static float | recurrent_sigmoid_local (float x) |
| void recurrent_norm_gate_backward | ( | const float * | d_out, |
| const float * | x, | ||
| const float * | gate, | ||
| const float * | weight, | ||
| float * | d_x, | ||
| float * | d_gate, | ||
| float * | d_weight, | ||
| int | rows, | ||
| int | num_heads, | ||
| int | head_dim, | ||
| float | eps | ||
| ) |
Definition at line 182 of file recurrent_norm_kernels.c.
References recurrent_sigmoid_local(), and silu().
| void recurrent_norm_gate_forward | ( | const float * | x, |
| const float * | gate, | ||
| const float * | weight, | ||
| float * | out, | ||
| int | rows, | ||
| int | num_heads, | ||
| int | head_dim, | ||
| float | eps | ||
| ) |
Definition at line 18 of file recurrent_norm_kernels.c.
References recurrent_sigmoid_local(), and silu().
Referenced by ck_test_recurrent_norm_gate().
| void recurrent_norm_gate_llama_avx2_forward | ( | const float * | x, |
| const float * | gate, | ||
| const float * | weight, | ||
| float * | out, | ||
| int | rows, | ||
| int | num_heads, | ||
| int | head_dim, | ||
| float | eps | ||
| ) |
Definition at line 53 of file recurrent_norm_kernels.c.
References recurrent_silu_forward_ggml(), rmsnorm_forward_llama_production(), and silu().
| void recurrent_norm_gate_pytorch_bf16_storage | ( | const float * | x, |
| const float * | gate, | ||
| const float * | weight, | ||
| float * | out, | ||
| int | rows, | ||
| int | num_heads, | ||
| int | head_dim, | ||
| float | eps | ||
| ) |
Definition at line 111 of file recurrent_norm_kernels.c.
References bf16_to_float(), float_to_bf16(), recurrent_silu_forward_pytorch_bf16_input_fp32_output(), rmsnorm_forward_pytorch_bf16_storage(), and silu().
| void recurrent_norm_sigmoid_gate_llama_avx2_forward | ( | const float * | x, |
| const float * | gate, | ||
| const float * | weight, | ||
| float * | out, | ||
| int | rows, | ||
| int | num_heads, | ||
| int | head_dim, | ||
| float | eps | ||
| ) |
Definition at line 82 of file recurrent_norm_kernels.c.
References recurrent_sigmoid_forward_ggml(), and rmsnorm_forward_llama_production().
| void recurrent_norm_sigmoid_gate_pytorch_bf16_storage | ( | const float * | x, |
| const float * | gate, | ||
| const float * | weight, | ||
| float * | out, | ||
| int | rows, | ||
| int | num_heads, | ||
| int | head_dim, | ||
| float | eps | ||
| ) |
Definition at line 149 of file recurrent_norm_kernels.c.
References bf16_to_float(), float_to_bf16(), recurrent_sigmoid_forward_pytorch_bf16_input_fp32_output(), and rmsnorm_forward_pytorch_bf16_storage().
|
inlinestatic |
Definition at line 7 of file recurrent_norm_kernels.c.
Referenced by recurrent_norm_gate_backward(), and recurrent_norm_gate_forward().