Go to the source code of this file.
Functions | |
| int | ck_gelu_erf_backward_bf16 (const uint16_t *input, size_t input_elements, size_t input_stride, const uint16_t *d_output, size_t d_output_elements, size_t d_output_stride, uint16_t *d_input, size_t d_input_elements, size_t d_input_stride, float *scratch, size_t scratch_elements, size_t rows, size_t channels) |
| int | ck_grouped_weighted_rows_backward_bf16 (const uint16_t *options, size_t option_elements, size_t option_stride, const uint16_t *fields, size_t field_elements, size_t field_stride, const int32_t *group_counts, size_t count_elements, const uint16_t *d_output, size_t d_output_elements, size_t d_output_stride, uint16_t *d_options, size_t d_options_elements, size_t d_options_stride, uint16_t *d_fields, size_t d_fields_elements, size_t d_fields_stride, float *scratch, size_t scratch_elements, size_t groups, size_t option_rows, size_t channels) |
| int | ck_token_span_mean_backward_bf16 (const uint16_t *d_output, size_t d_output_elements, size_t d_output_stride, const int32_t *spans, size_t span_elements, size_t span_count, uint16_t *d_input, size_t d_input_elements, size_t d_input_stride, float *scratch, size_t scratch_elements, size_t token_capacity, size_t valid_tokens, size_t channels) |
| static int | expand (const uint16_t *src, float *dst, size_t rows, size_t cols, size_t stride) |
| static int | extent (size_t rows, size_t cols, size_t stride, size_t size) |
| static int | product (size_t a, size_t b, size_t *v) |
| static void | publish (uint16_t *dst, const float *src, size_t rows, size_t cols, size_t stride) |
| static int | regions (const Region *r, size_t count, size_t reads) |
| static int | roundable (const float *src, size_t n) |
| static int | sum_size (size_t a, size_t b, size_t *v) |
| int ck_gelu_erf_backward_bf16 | ( | const uint16_t * | input, |
| size_t | input_elements, | ||
| size_t | input_stride, | ||
| const uint16_t * | d_output, | ||
| size_t | d_output_elements, | ||
| size_t | d_output_stride, | ||
| uint16_t * | d_input, | ||
| size_t | d_input_elements, | ||
| size_t | d_input_stride, | ||
| float * | scratch, | ||
| size_t | scratch_elements, | ||
| size_t | rows, | ||
| size_t | channels ) |
Definition at line 72 of file head_backward_bf16.c.
References ck_gelu_erf_backward_f32(), expand(), extent(), product(), publish(), regions(), and roundable().
| int ck_grouped_weighted_rows_backward_bf16 | ( | const uint16_t * | options, |
| size_t | option_elements, | ||
| size_t | option_stride, | ||
| const uint16_t * | fields, | ||
| size_t | field_elements, | ||
| size_t | field_stride, | ||
| const int32_t * | group_counts, | ||
| size_t | count_elements, | ||
| const uint16_t * | d_output, | ||
| size_t | d_output_elements, | ||
| size_t | d_output_stride, | ||
| uint16_t * | d_options, | ||
| size_t | d_options_elements, | ||
| size_t | d_options_stride, | ||
| uint16_t * | d_fields, | ||
| size_t | d_fields_elements, | ||
| size_t | d_fields_stride, | ||
| float * | scratch, | ||
| size_t | scratch_elements, | ||
| size_t | groups, | ||
| size_t | option_rows, | ||
| size_t | channels ) |
Definition at line 93 of file head_backward_bf16.c.
References ck_grouped_weighted_rows_backward_f32(), expand(), extent(), product(), publish(), regions(), roundable(), and sum_size().
| int ck_token_span_mean_backward_bf16 | ( | const uint16_t * | d_output, |
| size_t | d_output_elements, | ||
| size_t | d_output_stride, | ||
| const int32_t * | spans, | ||
| size_t | span_elements, | ||
| size_t | span_count, | ||
| uint16_t * | d_input, | ||
| size_t | d_input_elements, | ||
| size_t | d_input_stride, | ||
| float * | scratch, | ||
| size_t | scratch_elements, | ||
| size_t | token_capacity, | ||
| size_t | valid_tokens, | ||
| size_t | channels ) |
Definition at line 48 of file head_backward_bf16.c.
References ck_token_span_mean_backward_f32(), expand(), extent(), product(), publish(), regions(), roundable(), and sum_size().
|
static |
Definition at line 31 of file head_backward_bf16.c.
References bf16_to_float().
Referenced by ck_gelu_erf_backward_bf16(), ck_grouped_weighted_rows_backward_bf16(), and ck_token_span_mean_backward_bf16().
|
static |
Definition at line 16 of file head_backward_bf16.c.
Referenced by ck_checked_parallel_for(), ck_gelu_erf_backward_bf16(), ck_grouped_weighted_rows_backward_bf16(), ck_token_span_mean_backward_bf16(), copy_last_row_checked_f32(), embedding_lookup_packed_checked_f32(), and log_position_scale_rows_checked_f32().
|
static |
Definition at line 8 of file head_backward_bf16.c.
Referenced by ck_gelu_erf_backward_bf16(), ck_grouped_weighted_rows_backward_bf16(), and ck_token_span_mean_backward_bf16().
|
static |
Definition at line 44 of file head_backward_bf16.c.
References float_to_bf16().
Referenced by ck_gelu_erf_backward_bf16(), ck_grouped_weighted_rows_backward_bf16(), and ck_token_span_mean_backward_bf16().
|
static |
Definition at line 20 of file head_backward_bf16.c.
References count.
Referenced by ck_gelu_erf_backward_bf16(), ck_grouped_weighted_rows_backward_bf16(), ck_token_span_mean_backward_bf16(), and valid_regions().
|
static |
Definition at line 39 of file head_backward_bf16.c.
References float_to_bf16().
Referenced by ck_gelu_erf_backward_bf16(), ck_grouped_weighted_rows_backward_bf16(), and ck_token_span_mean_backward_bf16().
|
static |
Definition at line 12 of file head_backward_bf16.c.
Referenced by ck_grouped_weighted_rows_backward_bf16(), and ck_token_span_mean_backward_bf16().