Update ggml-kompute.cpp

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
This commit is contained in:
AT 2024-02-13 14:01:19 -05:00 committed by GitHub
parent a83f68797d
commit 4ca3d401cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) { 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); GGML_UNUSED(buffer);
if (!size) if (!size) {
return; return;
}
const auto res = ggml_vk_get_tensor(tensor); const auto res = ggml_vk_get_tensor(tensor);
GGML_ASSERT(res); GGML_ASSERT(res);