From e0493800cecc2e18964f9c6d9db9db249bfca9c8 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Mon, 15 Jan 2024 16:43:46 +0200 Subject: [PATCH] simple : fix --- examples/simple/simple.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/simple/simple.cpp b/examples/simple/simple.cpp index 8db37eef7..b83e7a812 100644 --- a/examples/simple/simple.cpp +++ b/examples/simple/simple.cpp @@ -26,7 +26,7 @@ static bool observe_compute(struct ggml_tensor * t, bool ask, void * user_data) const bool is_host = ggml_backend_buffer_is_host(t->buffer); - if (!is_host || ggml_is_contiguous(t)) { + if (!is_host || !ggml_is_contiguous(t)) { t_data.resize(ggml_nelements(t)); ggml_backend_tensor_get(t, t_data.data(), 0, ggml_nbytes(t)); }