]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
Early return for zero size calls to get_tensor. (llama/5482)
authorAT <redacted>
Tue, 13 Feb 2024 21:44:25 +0000 (15:44 -0600)
committerGeorgi Gerganov <redacted>
Mon, 19 Feb 2024 13:52:51 +0000 (15:52 +0200)
commitf91c377c90e8c812a6adf7bbf7344944ffee16da
tree5dfc8e32045817395a2b9afb8ebff788e56a65b4
parentc58fecfdab18bd39d41aa7392cbec9bd91ef0c85
Early return for zero size calls to get_tensor. (llama/5482)

* Early return for zero size calls to get_tensor.

Signed-off-by: Adam Treat <redacted>
* Update ggml-kompute.cpp

Co-authored-by: Georgi Gerganov <redacted>
* Update ggml-kompute.cpp

Co-authored-by: Georgi Gerganov <redacted>
* Add an early return to the get/set tensor when the size is null.

Signed-off-by: Adam Treat <redacted>
* Early return after the assertions.

Signed-off-by: Adam Treat <redacted>
* Since we do the early return in the generic backend now no reason to do so here as well.

Signed-off-by: Adam Treat <redacted>
---------

Signed-off-by: Adam Treat <redacted>
Co-authored-by: Georgi Gerganov <redacted>
src/ggml-backend.c