]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
Early return for zero size calls to get_tensor. (#5482)
authorAT <redacted>
Tue, 13 Feb 2024 21:44:25 +0000 (15:44 -0600)
committerGitHub <redacted>
Tue, 13 Feb 2024 21:44:25 +0000 (22:44 +0100)
commitf5ca054855dea83f424003162f26de376e5643f6
tree96771bf70158e325a8029eabe0184e248547c02a
parent6c00a066928b0475b865a2e3e709e2166e02d548
Early return for zero size calls to get_tensor. (#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>
ggml-backend.c