Skip to content

Commit fbaf4f7

Browse files
authored
fix bug (#416)
1 parent 64df6d5 commit fbaf4f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)