gguf-test: tensor data comparison

This commit is contained in:
Johannes Gäßler 2025-01-18 09:49:47 +01:00
parent 7000623c00
commit ba421dd04e
2 changed files with 10 additions and 0 deletions

View file

@ -648,6 +648,10 @@ struct gguf_context * gguf_init_from_file_impl(FILE * file, struct gguf_init_par
ok = ok && data != nullptr;
if (ok) {
ggml_set_name(data, "GGUF tensor data binary blob");
}
// read the binary blob with the tensor data
ok = ok && gr.read(data->data, ctx->size);