mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-01-30 17:58:40 +01:00
gguf : handle null name during init (llama/8587)
This commit is contained in:
parent
be9a16fd3f
commit
b1ee3a8444
@ -21014,7 +21014,7 @@ struct gguf_context * gguf_init_from_file(const char * fname, struct gguf_init_p
|
||||
gguf_tensor_info_sanitize(info);
|
||||
|
||||
// make sure there is no duplicated tensor names
|
||||
for (uint64_t j = 0; j < i; ++j) {
|
||||
for (uint64_t j = 0; j < i && ok; ++j) {
|
||||
if (strcmp(info->name.data, ctx->infos[j].name.data) == 0) {
|
||||
fprintf(stderr, "%s: duplicated tensor name %s\n", __func__, info->name.data);
|
||||
ok = false;
|
||||
|
Loading…
Reference in New Issue
Block a user