]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
Remove unused data and add fixes (llama/5154)
authorMichael Klimenko <redacted>
Sat, 27 Jan 2024 14:25:55 +0000 (15:25 +0100)
committerGeorgi Gerganov <redacted>
Sat, 27 Jan 2024 15:00:49 +0000 (17:00 +0200)
* Remove unused data and add fixes

* Add missing file

* Address review comments

* Replace the scope of vq allocation

tests/test-backend-ops.cpp

index 55ce14e0d902c50c613d98d6b6cc0ce211119019..e3c656f568dca7ae8991d18a246fa1a7b6dec938 100644 (file)
@@ -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 {