]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
llama : rename ctx to user_data in progress_callback (#7045)
authorDaniel Bevenius <redacted>
Fri, 3 May 2024 13:24:30 +0000 (15:24 +0200)
committerGitHub <redacted>
Fri, 3 May 2024 13:24:30 +0000 (15:24 +0200)
commit433def286e98751bf17db75dce53847d075c0be5
treeb206c080d6221ad144da7f9095fe69fa896abff9
parent60325fa56f61c228464c9f065db3aa6a61f2156e
llama : rename ctx to user_data in progress_callback (#7045)

* llama : rename ctx to user_data in progress_callback

This commit renames the `ctx` parameter to `user_data` in the
`llama_progress_callback` typedef.

The motivation for this is that other callbacks use `user_data` or
`data`, and using `ctx` in this case might be confusing as it could be
confused with `llama_context`.

---------

Signed-off-by: Daniel Bevenius <redacted>
llama.h