mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-01-26 15:58:55 +01:00
cuda : assert ggml_add sources to be contiguous
This commit is contained in:
parent
e2f0eba2d4
commit
ca23f8ee6d
@ -6142,6 +6142,9 @@ inline void ggml_cuda_op_add(
|
||||
const ggml_tensor * src0, const ggml_tensor * src1, ggml_tensor * dst,
|
||||
const float * src0_dd, const float * src1_dd, float * dst_dd, const cudaStream_t & main_stream) {
|
||||
|
||||
GGML_ASSERT(ggml_is_contiguous(src0));
|
||||
GGML_ASSERT(ggml_is_contiguous(src1));
|
||||
|
||||
GGML_ASSERT(src1->type == GGML_TYPE_F32);
|
||||
|
||||
const int64_t ne10 = src1->ne[0];
|
||||
|
Loading…
Reference in New Issue
Block a user