pass std::string_view by value
This commit is contained in:
parent
d9a6e49844
commit
43f301fa73
|
|
@ -1804,7 +1804,7 @@ bool common_prompt_batch_decode(
|
|||
const std::vector<llama_token> & tokens,
|
||||
int & n_past,
|
||||
int n_batch,
|
||||
const std::string_view & state_path,
|
||||
std::string_view state_path,
|
||||
bool save_state) {
|
||||
const int n_eval = tokens.size();
|
||||
if (n_eval == 0) {
|
||||
|
|
|
|||
|
|
@ -789,7 +789,7 @@ bool common_prompt_batch_decode(
|
|||
const std::vector<llama_token> & embd,
|
||||
int & n_past,
|
||||
int n_batch,
|
||||
const std::string_view & state_path,
|
||||
std::string_view state_path,
|
||||
bool save_state);
|
||||
|
||||
// replays the last token after loading state to regenerate logits
|
||||
|
|
|
|||
Loading…
Reference in New Issue