| 2674 | /// |
| 2675 | |
| 2676 | int32_t llama_encode( |
| 2677 | llama_context * ctx, |
| 2678 | llama_batch batch) { |
| 2679 | const int ret = ctx->encode(batch); |
| 2680 | if (ret != 0) { |
| 2681 | LLAMA_LOG_ERROR("%s: failed to encode, ret = %d\n", __func__, ret); |
| 2682 | } |
| 2683 | |
| 2684 | return ret; |
| 2685 | } |
| 2686 | |
| 2687 | int32_t llama_decode( |
| 2688 | llama_context * ctx, |
no test coverage detected