diff --git a/ggml-cuda/concat.cu b/ggml-cuda/concat.cu index caa9c1e04..fb9dee8f8 100644 --- a/ggml-cuda/concat.cu +++ b/ggml-cuda/concat.cu @@ -104,6 +104,9 @@ void ggml_cuda_op_concat(ggml_backend_cuda_context & ctx, ggml_tensor * dst) { const int32_t dim = ((int32_t *) dst->op_params)[0]; + GGML_ASSERT(ggml_is_contiguous(src0)); + GGML_ASSERT(ggml_is_contiguous(src1)); + GGML_ASSERT(src0->type == GGML_TYPE_F32); GGML_ASSERT(src1->type == GGML_TYPE_F32); GGML_ASSERT(dst->type == GGML_TYPE_F32);