]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
tests: add gradient tests for all backends (ggml/932)
authorJohannes Gäßler <redacted>
Tue, 3 Sep 2024 15:21:46 +0000 (17:21 +0200)
committerGeorgi Gerganov <redacted>
Sun, 8 Sep 2024 08:05:55 +0000 (11:05 +0300)
commit202084d31d4247764fc6d6d40d2e2bda0c89a73a
treeccf7cfc841fcfb38809b51fc40b279c609ad5e26
parentdbbebcab339c7d63d3806e8f32574bb9aad9a694
tests: add gradient tests for all backends (ggml/932)

* tests: add gradient checking to test-backend-ops

* remove old comment

* reorder includes

* adjust SIN/COS parameters

* add documentation, use supports_op if possible
ggml/include/ggml.h
ggml/src/ggml-backend.c
ggml/src/ggml-cuda.cu
ggml/src/ggml-cuda/cross-entropy-loss.cu
ggml/src/ggml-cuda/sum.cu [new file with mode: 0644]
ggml/src/ggml-cuda/sum.cuh [new file with mode: 0644]
ggml/src/ggml-cuda/unary.cu
ggml/src/ggml-cuda/unary.cuh
ggml/src/ggml.c
tests/test-backend-ops.cpp