encoded
family
Declared in clika_rt/clika_rt_core.h.
Members
| Name | Description |
|---|---|
clika_rt_encoded | |
encoded_attention_mask | the attention mask, or NULL (padded path only); a non-NULL return is RETAINED; the caller releases it |
encoded_cu_seqlens | exclusive prefix sums (the varlen offset table), or NULL; a non-NULL return is RETAINED; the caller releases it |
encoded_free | |
encoded_ids_at | row i's token ids; two-call sizing (buf NULL sizes; count carries capacity in, required count out) |
encoded_input_ids | the input-id tensor, or NULL when the encode did not build tensors; a non-NULL return is RETAINED; the caller releases it |
encoded_num_sequences | how many id rows the encode produced |
encoded_seq_lengths | per-sequence token counts, or NULL; a non-NULL return is RETAINED ; the caller releases it |
Type aliases
using clika_rt_encoded
using clika_rt_encoded = struct clika_rt_encoded
Declared in clika_rt/clika_rt_core.h, line 330
Functions
encoded_attention_mask
clika_rt_tensor*(* encoded_attention_mask)(const clika_rt_encoded *e)
the attention mask, or NULL (padded path only); a non-NULL return is RETAINED; the caller releases it
Declared in clika_rt/clika_rt_core.h, line 743
encoded_cu_seqlens
clika_rt_tensor*(* encoded_cu_seqlens)(const clika_rt_encoded *e)
exclusive prefix sums (the varlen offset table), or NULL; a non-NULL return is RETAINED; the caller releases it
Declared in clika_rt/clika_rt_core.h, line 747
encoded_free
void(* encoded_free)(clika_rt_encoded *e)
Declared in clika_rt/clika_rt_core.h, line 732
encoded_ids_at
clika_rt_error*(* encoded_ids_at)(const clika_rt_encoded *e, size_t i, int32_t *buf, size_t *count)
row i's token ids; two-call sizing (buf NULL sizes; count carries capacity in, required count out)
Declared in clika_rt/clika_rt_core.h, line 736
encoded_input_ids
clika_rt_tensor*(* encoded_input_ids)(const clika_rt_encoded *e)
the input-id tensor, or NULL when the encode did not build tensors; a non-NULL return is RETAINED; the caller releases it
Declared in clika_rt/clika_rt_core.h, line 741
encoded_num_sequences
size_t(* encoded_num_sequences)(const clika_rt_encoded *e)
how many id rows the encode produced
Declared in clika_rt/clika_rt_core.h, line 734
encoded_seq_lengths
clika_rt_tensor*(* encoded_seq_lengths)(const clika_rt_encoded *e)
per-sequence token counts, or NULL; a non-NULL return is RETAINED ; the caller releases it
Declared in clika_rt/clika_rt_core.h, line 745