Process a batch of tokens using the encoder. 0 - success < 0 - error
(ctx: llama_context_p, batch: llama_batch, /)
| 3046 | # struct llama_batch batch); |
| 3047 | @ctypes_function("llama_encode", [llama_context_p_ctypes, llama_batch], ctypes.c_int32) |
| 3048 | def llama_encode(ctx: llama_context_p, batch: llama_batch, /) -> int: |
| 3049 | """Process a batch of tokens using the encoder. |
| 3050 | 0 - success |
| 3051 | < 0 - error""" |
| 3052 | ... |
| 3053 | |
| 3054 | |
| 3055 | # // Process a batch of tokens. |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…