Skip to content

Commit 1b9ca1c

Browse files
am17anggerganov
andauthored
refactor if statement
Co-authored-by: Georgi Gerganov <[email protected]>
1 parent c013397 commit 1b9ca1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llama-context.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ int llama_context::encode(const llama_batch & batch_inp) {
805805
}
806806

807807
// extract embeddings
808-
if (cparams.embeddings && t_embd) {
808+
if (embd && t_embd) {
809809
ggml_backend_t backend_embd = ggml_backend_sched_get_tensor_backend(sched.get(), t_embd);
810810
GGML_ASSERT(backend_embd != nullptr);
811811

0 commit comments

Comments
 (0)