From: Michael Klimenko Date: Sat, 27 Jan 2024 14:25:55 +0000 (+0100) Subject: Remove unused data and add fixes (llama/5154) X-Git-Tag: upstream/0.0.1642~1036 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=53298461b31dea91e56432a501969c3bf57f628b;p=pkg%2Fggml%2Fsources%2Fggml Remove unused data and add fixes (llama/5154) * Remove unused data and add fixes * Add missing file * Address review comments * Replace the scope of vq allocation --- 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 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 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 {