Skip to content

Commit 1e09cbe

Browse files
committed
Update test_attention_v1.py
1 parent 6238004 commit 1e09cbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ut/attention/test_attention_v1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ def test_forward_decode_only_swa(self, mock_fused_infer_attention_score,
437437
query = torch.randn(10, 8 * 64)
438438
key = torch.randn(10, 8 * 64)
439439
value = torch.randn(10, 8 * 64)
440-
kv_cache = torch.empty(10, 128, 8, 64)
440+
kv_cache = torch.empty(2, 5, 128, 8, 64)
441441
metadata = self.attn_metadata
442442
metadata.attn_state = AscendAttentionState.DecodeOnly
443443
metadata.seq_lens = torch.tensor([10] * 10)

0 commit comments

Comments
 (0)