Go to the source code of this file.
Functions | |
| int | audio_duration_logits_to_frames_f32 (const float *logits, size_t input_elements, size_t tokens, size_t bins, size_t input_stride, float speed, int32_t *durations, size_t duration_capacity, size_t max_duration_per_token, size_t max_expanded_frames, int32_t *expanded_frames) |
| static float | sigmoid_f32 (float x) |
| static int | token_frames (const float *logits, size_t bins, float speed, size_t max_duration_per_token, int32_t *frames) |
| int audio_duration_logits_to_frames_f32 | ( | const float * | logits, |
| size_t | input_elements, | ||
| size_t | tokens, | ||
| size_t | bins, | ||
| size_t | input_stride, | ||
| float | speed, | ||
| int32_t * | durations, | ||
| size_t | duration_capacity, | ||
| size_t | max_duration_per_token, | ||
| size_t | max_expanded_frames, | ||
| int32_t * | expanded_frames | ||
| ) |
Definition at line 43 of file audio_duration_logits.c.
References CK_AUDIO_EXTENT_INVALID, CK_AUDIO_EXTENT_LIMIT, CK_AUDIO_EXTENT_OK, CK_AUDIO_EXTENT_OVERFLOW, token, and token_frames().
|
static |
Definition at line 7 of file audio_duration_logits.c.
Referenced by token_frames().
|
static |
Definition at line 13 of file audio_duration_logits.c.
References CK_AUDIO_EXTENT_INVALID, CK_AUDIO_EXTENT_LIMIT, CK_AUDIO_EXTENT_OK, and sigmoid_f32().
Referenced by audio_duration_logits_to_frames_f32().