Go to the source code of this file.
Functions | |
| static float | add_product (float sum, float a, float b) |
| int | ck_projection_bf16_train_backward (const float *d_output, size_t d_output_elements, const uint16_t *saved_input, size_t saved_input_elements, const uint16_t *saved_weight, size_t saved_weight_elements, float *d_input, size_t d_input_elements, float *d_weight, size_t d_weight_elements, float *scratch, size_t scratch_elements, size_t rows, size_t inputs, size_t outputs) |
| int | ck_projection_bf16_train_bias_backward (const float *d_output, size_t d_output_elements, const uint16_t *saved_input, size_t saved_input_elements, const uint16_t *saved_weight, size_t saved_weight_elements, float *d_input, size_t d_input_elements, float *d_weight, size_t d_weight_elements, float *d_bias, size_t d_bias_elements, float *scratch, size_t scratch_elements, size_t rows, size_t inputs, size_t outputs) |
| int | ck_projection_bf16_train_bias_forward (const float *input, size_t input_elements, const float *weight, size_t weight_elements, const float *bias, size_t bias_elements, float *output, size_t output_elements, uint16_t *saved_input, size_t saved_input_elements, uint16_t *saved_weight, size_t saved_weight_elements, float *scratch, size_t scratch_elements, size_t rows, size_t inputs, size_t outputs) |
| int | ck_projection_bf16_train_forward (const float *input, size_t input_elements, const float *weight, size_t weight_elements, float *output, size_t output_elements, uint16_t *saved_input, size_t saved_input_elements, uint16_t *saved_weight, size_t saved_weight_elements, float *scratch, size_t scratch_elements, size_t rows, size_t inputs, size_t outputs) |
| static int | product (size_t a, size_t b, size_t *n) |
| static int | projection_backward (const float *d_output, size_t d_output_elements, const uint16_t *saved_input, size_t saved_input_elements, const uint16_t *saved_weight, size_t saved_weight_elements, float *d_input, size_t d_input_elements, float *d_weight, size_t d_weight_elements, float *d_bias, size_t d_bias_elements, float *scratch, size_t scratch_elements, size_t rows, size_t inputs, size_t outputs) |
| static int | projection_forward (const float *input, size_t input_elements, const float *weight, size_t weight_elements, const float *bias, size_t bias_elements, float *output, size_t output_elements, uint16_t *saved_input, size_t saved_input_elements, uint16_t *saved_weight, size_t saved_weight_elements, float *scratch, size_t scratch_elements, size_t rows, size_t inputs, size_t outputs) |
| static int | regions (const void **p, const size_t *n, const size_t *width, size_t count, size_t reads) |
| static float | rounded (float x) |
|
static |
Definition at line 23 of file projection_bf16_train.c.
Referenced by projection_backward(), and projection_forward().
| int ck_projection_bf16_train_backward | ( | const float * | d_output, |
| size_t | d_output_elements, | ||
| const uint16_t * | saved_input, | ||
| size_t | saved_input_elements, | ||
| const uint16_t * | saved_weight, | ||
| size_t | saved_weight_elements, | ||
| float * | d_input, | ||
| size_t | d_input_elements, | ||
| float * | d_weight, | ||
| size_t | d_weight_elements, | ||
| float * | scratch, | ||
| size_t | scratch_elements, | ||
| size_t | rows, | ||
| size_t | inputs, | ||
| size_t | outputs ) |
Definition at line 118 of file projection_bf16_train.c.
References projection_backward().
| int ck_projection_bf16_train_bias_backward | ( | const float * | d_output, |
| size_t | d_output_elements, | ||
| const uint16_t * | saved_input, | ||
| size_t | saved_input_elements, | ||
| const uint16_t * | saved_weight, | ||
| size_t | saved_weight_elements, | ||
| float * | d_input, | ||
| size_t | d_input_elements, | ||
| float * | d_weight, | ||
| size_t | d_weight_elements, | ||
| float * | d_bias, | ||
| size_t | d_bias_elements, | ||
| float * | scratch, | ||
| size_t | scratch_elements, | ||
| size_t | rows, | ||
| size_t | inputs, | ||
| size_t | outputs ) |
Definition at line 136 of file projection_bf16_train.c.
References projection_backward().
| int ck_projection_bf16_train_bias_forward | ( | const float * | input, |
| size_t | input_elements, | ||
| const float * | weight, | ||
| size_t | weight_elements, | ||
| const float * | bias, | ||
| size_t | bias_elements, | ||
| float * | output, | ||
| size_t | output_elements, | ||
| uint16_t * | saved_input, | ||
| size_t | saved_input_elements, | ||
| uint16_t * | saved_weight, | ||
| size_t | saved_weight_elements, | ||
| float * | scratch, | ||
| size_t | scratch_elements, | ||
| size_t | rows, | ||
| size_t | inputs, | ||
| size_t | outputs ) |
Definition at line 127 of file projection_bf16_train.c.
References projection_forward().
| int ck_projection_bf16_train_forward | ( | const float * | input, |
| size_t | input_elements, | ||
| const float * | weight, | ||
| size_t | weight_elements, | ||
| float * | output, | ||
| size_t | output_elements, | ||
| uint16_t * | saved_input, | ||
| size_t | saved_input_elements, | ||
| uint16_t * | saved_weight, | ||
| size_t | saved_weight_elements, | ||
| float * | scratch, | ||
| size_t | scratch_elements, | ||
| size_t | rows, | ||
| size_t | inputs, | ||
| size_t | outputs ) |
Definition at line 110 of file projection_bf16_train.c.
References projection_forward().
|
static |
Definition at line 8 of file projection_bf16_train.c.
Referenced by projection_backward(), and projection_forward().
|
static |
Definition at line 63 of file projection_bf16_train.c.
References add_product(), bf16_to_float(), product(), and regions().
Referenced by ck_projection_bf16_train_backward(), and ck_projection_bf16_train_bias_backward().
|
static |
Definition at line 28 of file projection_bf16_train.c.
References add_product(), float_to_bf16(), product(), regions(), and rounded().
Referenced by ck_projection_bf16_train_bias_forward(), and ck_projection_bf16_train_forward().
|
static |
Definition at line 12 of file projection_bf16_train.c.
References count.
Referenced by projection_backward(), and projection_forward().
|
static |
Definition at line 22 of file projection_bf16_train.c.
References bf16_to_float(), and float_to_bf16().
Referenced by affine_qdq_u8_f32(), ck_pack_q8_activation_rne_scalar(), geglu_forward_quick_fp16_table(), gemm_nt_bf16_row_range(), mlp_token_parallel_bf16(), projection_forward(), and token_frames().