Go to the source code of this file.
Functions | |
| int | rope_pairwise_rows_bf16_storage_checked (const float *input, size_t input_elements, const float *cosine, const float *sine, size_t table_elements, float *output, size_t output_elements, size_t tokens, size_t heads, size_t head_dim) |
| int | rope_pairwise_rows_f32_checked (const float *input, size_t input_elements, const float *cosine, const float *sine, size_t table_elements, float *output, size_t output_elements, size_t tokens, size_t heads, size_t head_dim) |
| int | rope_split_partial_position_f32_checked (const float *input, size_t input_elements, float *output, size_t output_elements, size_t heads, size_t head_dim, size_t rotary_dim, size_t capacity, size_t position, float freq_base) |
| int | rope_split_rows_f32_checked (const float *input, size_t input_elements, const float *cosine, const float *sine, size_t table_elements, float *output, size_t output_elements, size_t tokens, size_t heads, size_t head_dim) |
| static int | rotate_rows (const float *input, size_t input_elements, const float *cosine, const float *sine, size_t table_elements, float *output, size_t output_elements, size_t tokens, size_t heads, size_t head_dim, int bf16, int split_half) |
| static float | rounded (float value, int bf16) |
| int rope_pairwise_rows_bf16_storage_checked | ( | const float * | input, |
| size_t | input_elements, | ||
| const float * | cosine, | ||
| const float * | sine, | ||
| size_t | table_elements, | ||
| float * | output, | ||
| size_t | output_elements, | ||
| size_t | tokens, | ||
| size_t | heads, | ||
| size_t | head_dim ) |
Definition at line 54 of file rope_pairwise_rows_checked.c.
References rotate_rows().
| int rope_pairwise_rows_f32_checked | ( | const float * | input, |
| size_t | input_elements, | ||
| const float * | cosine, | ||
| const float * | sine, | ||
| size_t | table_elements, | ||
| float * | output, | ||
| size_t | output_elements, | ||
| size_t | tokens, | ||
| size_t | heads, | ||
| size_t | head_dim ) |
Definition at line 46 of file rope_pairwise_rows_checked.c.
References rotate_rows().
| int rope_split_partial_position_f32_checked | ( | const float * | input, |
| size_t | input_elements, | ||
| float * | output, | ||
| size_t | output_elements, | ||
| size_t | heads, | ||
| size_t | head_dim, | ||
| size_t | rotary_dim, | ||
| size_t | capacity, | ||
| size_t | position, | ||
| float | freq_base ) |
Definition at line 70 of file rope_pairwise_rows_checked.c.
References ck_checked_finite(), ck_checked_overlap(), ck_checked_region(), ck_checked_span(), left, publish(), and right.
| int rope_split_rows_f32_checked | ( | const float * | input, |
| size_t | input_elements, | ||
| const float * | cosine, | ||
| const float * | sine, | ||
| size_t | table_elements, | ||
| float * | output, | ||
| size_t | output_elements, | ||
| size_t | tokens, | ||
| size_t | heads, | ||
| size_t | head_dim ) |
Definition at line 62 of file rope_pairwise_rows_checked.c.
References rotate_rows().
|
static |
Definition at line 10 of file rope_pairwise_rows_checked.c.
References ck_checked_finite(), ck_checked_overlap(), ck_checked_region(), ck_checked_span(), left, right, and rounded().
Referenced by rope_pairwise_rows_bf16_storage_checked(), rope_pairwise_rows_f32_checked(), and rope_split_rows_f32_checked().
|
static |
Definition at line 4 of file rope_pairwise_rows_checked.c.
References bf16_to_float(), and float_to_bf16().
Referenced by rotate_rows().