Skip to content

Commit 121c6b1

Browse files
committed
fix bug
1 parent ee525d4 commit 121c6b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

llmc/compression/token_reduction/divprune.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def wrapper(self, *args, **kwargs):
129129
token_indices = input_ids[0][attention_mask[0]] == IMAGE_TOKEN_INDEX
130130
pruning_paras['image_token_start_index'] = torch.where(token_indices)[
131131
0
132-
].item()
132+
][0].item()
133133

134134
outputs = fn(*args, **kwargs)
135135

0 commit comments

Comments
 (0)