llama : use int32_t for llama_sampler_chain_n return type (#28631)
Contributes to #4574 Co-authored-by: linsen <linsen@insta360.com>
This commit is contained in:
1 parent
d4abd573f6
commit
4850c7727f
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -1357,7 +1357,7 @@ extern "C" {
|
||||
LLAMA_API struct llama_sampler * llama_sampler_chain_get( struct llama_sampler * chain, int32_t i);
|
||||
|
||||
// the total number of samplers in the chain
|
||||
LLAMA_API int llama_sampler_chain_n (const struct llama_sampler * chain);
|
||||
LLAMA_API int32_t llama_sampler_chain_n (const struct llama_sampler * chain);
|
||||
|
||||
// after removing a sampler, the chain will no longer own it, and it will not be freed when the chain is freed
|
||||
LLAMA_API struct llama_sampler * llama_sampler_chain_remove( struct llama_sampler * chain, int32_t i);
|
||||
|
||||
Reference in new issue
Block a user