summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Klimenko <mklimenko29@gmail.com>2024-01-27 15:25:55 +0100
committerGitHub <noreply@github.com>2024-01-27 15:25:55 +0100
commit35a2ee914308c85ab5cb576467381443ad23f0ac (patch)
tree72bd27fadddae5c8b82facf57373234822f574fc /tests
parentec903c034131848da9222536ff18da07ec0882a0 (diff)
Remove unused data and add fixes (#5154)
* Remove unused data and add fixes * Add missing file * Address review comments * Replace the scope of vq allocation
Diffstat (limited to 'tests')
-rw-r--r--tests/test-backend-ops.cpp1
-rw-r--r--tests/test-llama-grammar.cpp1
2 files changed, 0 insertions, 2 deletions
diff --git a/tests/test-backend-ops.cpp b/tests/test-backend-ops.cpp
index 55ce14e0..e3c656f5 100644
--- a/tests/test-backend-ops.cpp
+++ b/tests/test-backend-ops.cpp
@@ -102,7 +102,6 @@ static std::vector<float> tensor_to_float(const ggml_tensor * t) {
} else if (t->type == GGML_TYPE_I8) {
tv.push_back((float)*(int8_t *) &buf[i]);
} else if (quantized) {
- std::vector<float> vq(ggml_blck_size(t->type));
tt.to_float(&buf[i], vq.data(), ggml_blck_size(t->type));
tv.insert(tv.end(), vq.begin(), vq.end());
} else {
diff --git a/tests/test-llama-grammar.cpp b/tests/test-llama-grammar.cpp
index 73dd33dd..78fc4111 100644
--- a/tests/test-llama-grammar.cpp
+++ b/tests/test-llama-grammar.cpp
@@ -190,7 +190,6 @@ int main()
index++;
}
- std::vector<std::vector<const llama_grammar_element *>> next_stacks;
std::vector<llama_grammar_candidate> next_candidates;
next_candidates.resize(24);