ggml-opt: fix data corruption (ggml/1022)

This commit is contained in:
Johannes Gäßler 2024-11-20 14:56:04 +01:00 committed by Georgi Gerganov
parent 9abe9eeae9
commit 02e4eaf22f
No known key found for this signature in database
GPG key ID: 449E073F9DC10735
5 changed files with 129 additions and 118 deletions

View file

@ -819,7 +819,6 @@ struct test_case {
}
}
// TODO: refactor so that this check is only needed once
for (ggml_tensor * t = ggml_get_first_tensor(ctx); t != NULL; t = ggml_get_next_tensor(ctx, t)) {
if (!ggml_backend_supports_op(backend, t)) {
printf("not supported [%s] ", ggml_backend_name(backend));