#include "ckernel_attention_full_token_major.h"#include <float.h>#include <math.h>#include <stdint.h>Go to the source code of this file.
Functions | |
| int | attention_full_token_major_f32_checked (const float *query, size_t query_elements, const float *key, size_t key_elements, const float *value, size_t value_elements, float *output, size_t output_elements, float *scratch, size_t scratch_bytes, size_t tokens, size_t heads, size_t head_dim) |
| static int | checked_geometry (size_t tokens, size_t heads, size_t head_dim, size_t *width, size_t *elements) |
| static double | score (const float *query, const float *key, size_t head_dim, double scale) |
| int attention_full_token_major_f32_checked | ( | const float * | query, |
| size_t | query_elements, | ||
| const float * | key, | ||
| size_t | key_elements, | ||
| const float * | value, | ||
| size_t | value_elements, | ||
| float * | output, | ||
| size_t | output_elements, | ||
| float * | scratch, | ||
| size_t | scratch_bytes, | ||
| size_t | tokens, | ||
| size_t | heads, | ||
| size_t | head_dim | ||
| ) |
Definition at line 30 of file attention_full_token_major.c.
References checked_geometry(), product(), and score.
|
static |
Definition at line 7 of file attention_full_token_major.c.
Referenced by attention_full_token_major_f32_checked().
|
static |
Definition at line 19 of file attention_full_token_major.c.
References product().