Skip to content

Commit 459e539

Browse files
committed
cleancode
Signed-off-by: pu-zhe <zpuaa@outlook.com>
1 parent 3d6db11 commit 459e539

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vllm_ascend/_310p/attention/attention_mask.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def __init__(self, device: torch.device):
3737
self.attn_mask_cache = None
3838
self.device = device
3939
self.swa_mask = None
40+
self._seq_len_cached = 0
4041

4142
@staticmethod
4243
def gen_causal_additive_mask(max_seq_len: int, device: torch.device):

0 commit comments

Comments
 (0)