From a83f68797d415c8a9b9c0df7e7e5b5c95008dd47 Mon Sep 17 00:00:00 2001 From: AT Date: Tue, 13 Feb 2024 14:01:14 -0500 Subject: [PATCH] Update ggml-kompute.cpp Co-authored-by: Georgi Gerganov --- ggml-kompute.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ggml-kompute.cpp b/ggml-kompute.cpp index 8981ea384..bfd546a8c 100644 --- a/ggml-kompute.cpp +++ b/ggml-kompute.cpp @@ -1819,9 +1819,9 @@ static void ggml_backend_kompute_buffer_set_tensor(ggml_backend_buffer_t buffer, static void ggml_backend_kompute_buffer_get_tensor(ggml_backend_buffer_t buffer, const ggml_tensor * tensor, void * data, size_t offset, size_t size) { GGML_UNUSED(buffer); - if (!size) + if (!size) { return; - + } const auto res = ggml_vk_get_tensor(tensor); GGML_ASSERT(res);