ggml: fix gradient allocation logic (ggml/966)

* ggml: fix gradient allocation logic

* gradient allocation in ggml_build_backward_expand

* fixup

* fix test-backend-ops grad

* suggestions by slaren

* fix test1.c

* fix legacy opt API

* fix test-grad0

* remove keep arg
This commit is contained in:
Johannes Gäßler authored and Georgi Gerganov committed 2024-10-01 16:07:38 +03:00
1 parent cad341d889
commit 7254cdf7e8
4 files changed
+490 -1065

No files matched your search

+441 -1023
View File
File diff suppressed because it is too large. Load diff