Skip to content

Commit 9720aa6

Browse files
committed
change an assert to optional testing #1821
1 parent 7946203 commit 9720aa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-backend.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1493,7 +1493,7 @@ static enum ggml_status ggml_backend_sched_compute_splits(ggml_backend_sched_t s
14931493
for (int64_t i1 = 0; i1 < ids_tensor->ne[1]; i1++) {
14941494
for (int64_t i0 = 0; i0 < ids_tensor->ne[0]; i0++) {
14951495
int32_t id = ids[i1 * ids_tensor->nb[1]/sizeof(int32_t) + i0 * ids_tensor->nb[0]/sizeof(int32_t)];
1496-
GGML_ASSERT(id >= 0 && id < n_expert);
1496+
GGML_ASSERT_CONTINUE(id >= 0 && id < n_expert);
14971497
ggml_bitset_set(used_ids.data(), id);
14981498
}
14991499
}

0 commit comments

Comments
 (0)