remove assert (#6970)

Co-authored-by: “liuruian” <liuruian@baidu.com>
This commit is contained in:
周周周
2026-03-23 14:22:03 +08:00
committed by GitHub
parent 634d23a38a
commit 5416da8c6e
@@ -90,12 +90,6 @@ def append_attention(
append_attention
"""
if current_platform.is_cuda():
bsz = seq_lens_encoder.shape[0]
assert seq_lens_encoder.shape == [bsz]
assert seq_lens_decoder.shape == [bsz]
assert seq_lens_this_time.shape == [bsz]
assert cu_seqlens_q.shape == [bsz + 1]
assert block_tables.shape[0] == bsz
if sliding_window > 0 and head_wise_full_hidden > 0:
out_swa = append_attention_gpu(