Skip to content

Commit fb0471d

Browse files
pockers21pockers21
andauthored
context : do not clear output buffer on reserve (#13152)
Co-authored-by: pockers21 <liyang2@uniontech.com>
1 parent d2b2031 commit fb0471d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/llama-context.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1536,8 +1536,6 @@ int32_t llama_context::output_reserve(int32_t n_outputs) {
15361536
// set all ids as invalid (negative)
15371537
std::fill(output_ids.begin(), output_ids.end(), -1);
15381538

1539-
ggml_backend_buffer_clear(buf_output.get(), 0);
1540-
15411539
this->n_outputs = 0;
15421540
this->n_outputs_max = n_outputs_max;
15431541

0 commit comments

Comments
 (0)