diff --git a/src/llama-context.cpp b/src/llama-context.cpp index 0ed729f498..dabe64986e 100644 --- a/src/llama-context.cpp +++ b/src/llama-context.cpp @@ -1221,7 +1221,7 @@ static void copy_tensor_async_ints( size_t sampled_size, const std::unordered_map & seq_to_row, ggml_backend_sched_t sched) { - if (sampled == nullptr || sampled_size == 0) { + if (sampled == nullptr) { return; } @@ -1243,7 +1243,7 @@ static void copy_tensor_async_floats( std::vector & counts, const std::unordered_map & seq_to_row, ggml_backend_sched_t sched) { - if (dst == nullptr || stride == 0) { + if (dst == nullptr) { return; } @@ -1269,7 +1269,7 @@ static void copy_tensor_async_candidates( std::vector & counts, const std::unordered_map & seq_to_row, ggml_backend_sched_t sched) { - if (dst == nullptr || stride == 0) { + if (dst == nullptr) { return; }