diff options
author | AT <manyoso@users.noreply.github.com> | 2024-02-13 15:44:25 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-13 22:44:25 +0100 |
commit | f5ca054855dea83f424003162f26de376e5643f6 (patch) | |
tree | 96771bf70158e325a8029eabe0184e248547c02a /examples | |
parent | 6c00a066928b0475b865a2e3e709e2166e02d548 (diff) |
Early return for zero size calls to get_tensor. (#5482)
* Early return for zero size calls to get_tensor.
Signed-off-by: Adam Treat <treat.adam@gmail.com>
* Update ggml-kompute.cpp
Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
* Update ggml-kompute.cpp
Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
* Add an early return to the get/set tensor when the size is null.
Signed-off-by: Adam Treat <treat.adam@gmail.com>
* Early return after the assertions.
Signed-off-by: Adam Treat <treat.adam@gmail.com>
* Since we do the early return in the generic backend now no reason to do so here as well.
Signed-off-by: Adam Treat <treat.adam@gmail.com>
---------
Signed-off-by: Adam Treat <treat.adam@gmail.com>
Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions