Skip to content

Commit 416e7c7

Browse files
authored
metal : remove obosolete asserts (#17295)
1 parent 5b2093b commit 416e7c7

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

ggml/src/ggml-metal/ggml-metal-ops.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2191,8 +2191,6 @@ int ggml_metal_op_flash_attn_ext(ggml_metal_op_t ctx, int idx) {
21912191
ggml_metal_encoder_dispatch_threadgroups(enc, ncpsg, std::max(ne12, ne32), std::max(ne13, ne33), 32, 1, 1);
21922192

21932193
need_sync = true;
2194-
} else {
2195-
assert(ggml_metal_op_flash_attn_ext_extra_pad(op) == 0);
21962194
}
21972195

21982196
if (has_mask) {
@@ -2222,8 +2220,6 @@ int ggml_metal_op_flash_attn_ext(ggml_metal_op_t ctx, int idx) {
22222220
ggml_metal_encoder_dispatch_threadgroups(enc, nblk0, nblk1, ne32*ne33, 32, 1, 1);
22232221

22242222
need_sync = true;
2225-
} else {
2226-
assert(ggml_metal_op_flash_attn_ext_extra_blk(op) == 0);
22272223
}
22282224

22292225
if (need_sync) {
@@ -2363,8 +2359,6 @@ int ggml_metal_op_flash_attn_ext(ggml_metal_op_t ctx, int idx) {
23632359
ggml_metal_encoder_dispatch_threadgroups(enc, ncpsg, std::max(ne12, ne32), std::max(ne13, ne33), 32, 1, 1);
23642360

23652361
need_sync = true;
2366-
} else {
2367-
assert(ggml_metal_op_flash_attn_ext_extra_pad(op) == 0);
23682362
}
23692363

23702364
if (need_sync) {

0 commit comments

Comments
 (0)