Go to the source code of this file.
Functions | |
| static int | checked_cast_spans (const void *input, size_t element_in, const void *output, size_t element_out, size_t count) |
| int | ck_cast_bf16_f32_checked (const uint16_t *input, float *output, size_t count) |
| int | ck_cast_f32_bf16_checked (const float *input, uint16_t *output, size_t count) |
|
static |
Definition at line 7 of file cast_bf16_checked.c.
References count.
Referenced by ck_cast_bf16_f32_checked(), and ck_cast_f32_bf16_checked().
| int ck_cast_bf16_f32_checked | ( | const uint16_t * | input, |
| float * | output, | ||
| size_t | count ) |
Definition at line 29 of file cast_bf16_checked.c.
References bf16_to_float(), checked_cast_spans(), and count.
| int ck_cast_f32_bf16_checked | ( | const float * | input, |
| uint16_t * | output, | ||
| size_t | count ) |
Definition at line 17 of file cast_bf16_checked.c.
References bf16_to_float(), checked_cast_spans(), count, and float_to_bf16().