| 3471 | /// |
| 3472 | |
| 3473 | int32_t llama_encode( |
| 3474 | llama_context * ctx, |
| 3475 | llama_batch batch) { |
| 3476 | const int ret = ctx->encode(batch); |
| 3477 | if (ret != 0) { |
| 3478 | LLAMA_LOG_ERROR("%s: failed to encode, ret = %d\n", __func__, ret); |
| 3479 | } |
| 3480 | |
| 3481 | return ret; |
| 3482 | } |
| 3483 | |
| 3484 | int32_t llama_decode( |
| 3485 | llama_context * ctx, |