← Back to C-Kernel-Engine Docs Doxygen Source Documentation
 
Loading...
Searching...
No Matches
ckernel_audio_text_embedding.h
Go to the documentation of this file.
1#ifndef CKERNEL_AUDIO_TEXT_EMBEDDING_H
2#define CKERNEL_AUDIO_TEXT_EMBEDDING_H
3
4#include <stddef.h>
5#include <stdint.h>
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
11/* Exact FP32 table lookup from int32 IDs to channel-major [C,T] output.
12 * Every extent and selected ID is validated before output writes. The caller
13 * owns nonoverlapping input, table and output buffers; padding is untouched.
14 * Returns CK_AUDIO_EXTENT_* from ckernel_tts.h. */
16 const int32_t *ids, size_t id_elements,
17 const float *table, size_t table_elements,
18 size_t vocabulary, size_t channels, size_t table_stride,
19 float *output, size_t output_elements,
20 size_t tokens, size_t output_stride);
21
22#ifdef __cplusplus
23}
24#endif
25
26#endif
int audio_text_embedding_channel_major_f32(const int32_t *ids, size_t id_elements, const float *table, size_t table_elements, size_t vocabulary, size_t channels, size_t table_stride, float *output, size_t output_elements, size_t tokens, size_t output_stride)
const int32_t * ids
Definition tokenizer.h:444