diff --git a/ggml-kompute.cpp b/ggml-kompute.cpp index bfd546a8c..f5e90da51 100644 --- a/ggml-kompute.cpp +++ b/ggml-kompute.cpp @@ -1805,8 +1805,9 @@ static void * ggml_backend_kompute_buffer_get_base(ggml_backend_buffer_t buffer) static void ggml_backend_kompute_buffer_set_tensor(ggml_backend_buffer_t buffer, ggml_tensor * tensor, const 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);