aboutsummaryrefslogtreecommitdiff
path: root/llama.cpp
diff options
context:
space:
mode:
authorHoward Su <howard0su@gmail.com>2023-07-04 02:43:55 +0800
committerGitHub <noreply@github.com>2023-07-03 20:43:55 +0200
commitcc45a7feb8412e84ff292207621412fffc0d3d51 (patch)
treef3e64b4c05af6f50904c3329f713adda91d32535 /llama.cpp
parent55dbb915cc2a95048f56e667b09dfad38d840421 (diff)
Fix crash of test-tokenizer-0 under Debug build (#2064)
* Fix crash of test-tokenizer-0 under Debug build * Change per comment
Diffstat (limited to 'llama.cpp')
-rw-r--r--llama.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llama.cpp b/llama.cpp
index f48a6ca..7419b03 100644
--- a/llama.cpp
+++ b/llama.cpp
@@ -194,8 +194,8 @@ struct llama_layer {
};
struct llama_kv_cache {
- struct ggml_tensor * k;
- struct ggml_tensor * v;
+ struct ggml_tensor * k = NULL;
+ struct ggml_tensor * v = NULL;
struct ggml_context * ctx = NULL;