#include "ckernel_engine.h"#include <limits.h>#include <stdint.h>#include <stdlib.h>#include <string.h>Go to the source code of this file.
Functions | |
| static int | recurrent_conv_backward_extents (int history_len, int num_seqs, int num_tokens, int q_dim, int k_dim, int v_dim, int *channels_out, int *total_len_out, size_t *elements_out) |
| void | recurrent_conv_state_update_backward (const float *d_conv_x, const float *d_state_out, float *d_state_in, float *d_q, float *d_k, float *d_v, int history_len, int num_seqs, int num_tokens, int q_dim, int k_dim, int v_dim) |
| void | recurrent_conv_state_update_backward_workspace (const float *d_conv_x, const float *d_state_out, float *d_state_in, float *d_q, float *d_k, float *d_v, float *d_conv_total, int history_len, int num_seqs, int num_tokens, int q_dim, int k_dim, int v_dim) |
| void | recurrent_conv_state_update_forward (const float *state_in, const float *q, const float *k, const float *v, float *conv_x, float *state_out, int history_len, int num_seqs, int num_tokens, int q_dim, int k_dim, int v_dim) |
|
static |
Definition at line 58 of file recurrent_state_kernels.c.
Referenced by recurrent_conv_state_update_backward(), and recurrent_conv_state_update_backward_workspace().
| void recurrent_conv_state_update_backward | ( | const float * | d_conv_x, |
| const float * | d_state_out, | ||
| float * | d_state_in, | ||
| float * | d_q, | ||
| float * | d_k, | ||
| float * | d_v, | ||
| int | history_len, | ||
| int | num_seqs, | ||
| int | num_tokens, | ||
| int | q_dim, | ||
| int | k_dim, | ||
| int | v_dim | ||
| ) |
Definition at line 160 of file recurrent_state_kernels.c.
References recurrent_conv_backward_extents(), and recurrent_conv_state_update_backward_workspace().
| void recurrent_conv_state_update_backward_workspace | ( | const float * | d_conv_x, |
| const float * | d_state_out, | ||
| float * | d_state_in, | ||
| float * | d_q, | ||
| float * | d_k, | ||
| float * | d_v, | ||
| float * | d_conv_total, | ||
| int | history_len, | ||
| int | num_seqs, | ||
| int | num_tokens, | ||
| int | q_dim, | ||
| int | k_dim, | ||
| int | v_dim | ||
| ) |
Definition at line 91 of file recurrent_state_kernels.c.
References recurrent_conv_backward_extents().
Referenced by recurrent_conv_state_update_backward().
| void recurrent_conv_state_update_forward | ( | const float * | state_in, |
| const float * | q, | ||
| const float * | k, | ||
| const float * | v, | ||
| float * | conv_x, | ||
| float * | state_out, | ||
| int | history_len, | ||
| int | num_seqs, | ||
| int | num_tokens, | ||
| int | q_dim, | ||
| int | k_dim, | ||
| int | v_dim | ||
| ) |
Definition at line 8 of file recurrent_state_kernels.c.
Referenced by ck_test_recurrent_conv_state_update().