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
2024-09-29 23:18:02 +02:00
committed by Georgi Gerganov
parent 6c91da80b8
commit 0ac6666cd2
2 changed files with 461 additions and 1043 deletions

File diff suppressed because it is too large Load Diff