llama-cpp-d ~master (2026-03-20T18:06:26.5280947)
Dub
Repo
batchGetOne
llama
batch
Wraps a token slice into a batch. The slice must outlive the returned batch.
llama_batch
batchGetOne
(const(llama_token)[] tokens)
@
trusted
@
nogc
nothrow
llama_batch
batchGetOne
(
scope
const
(
llama_token
)[]
tokens
)
llama_batch
batchGetOne
(llama_token* tokens, int nTokens)
Meta
Source
See Implementation
llama
batch
functions
allocBatch
batchAdd
batchClear
batchGetOne
structs
OwnedBatch
Wraps a token slice into a batch. The slice must outlive the returned batch.