Skip to content

Commit 8d2e3b2

Browse files
committed
fix: replace assert with GGML_ASSERT
1 parent 508def2 commit 8d2e3b2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ggml/src/ggml-cpu/ops.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8847,8 +8847,8 @@ static void ggml_compute_forward_win_part_f32(
88478847
const int32_t bs = ((const int32_t *)(dst->op_params))[2];
88488848
const int32_t w = ((const int32_t *)(dst->op_params))[3];
88498849

8850-
assert(ne00 == ne0);
8851-
assert(ne3 == nep0*nep1*bs);
8850+
GGML_ASSERT(ne00 == ne0);
8851+
GGML_ASSERT(ne3 == nep0*nep1*bs);
88528852

88538853
// TODO: optimize / multi-thread
88548854
for (int64_t i3 = 0; i3 < ne3; i3++) {
@@ -8891,8 +8891,8 @@ static void ggml_compute_forward_win_part_f16(
88918891
const int32_t bs = ((const int32_t *)(dst->op_params))[2];
88928892
const int32_t w = ((const int32_t *)(dst->op_params))[3];
88938893

8894-
assert(ne00 == ne0);
8895-
assert(ne3 == nep0*nep1*bs);
8894+
GGML_ASSERT(ne00 == ne0);
8895+
GGML_ASSERT(ne3 == nep0*nep1*bs);
88968896

88978897
// TODO: optimize / multi-thread
88988898
for (int64_t i3 = 0; i3 < ne3; i3++) {

0 commit comments

Comments
 (0)