Skip to content

Commit b11a5f8

Browse files
committed
spell
1 parent fc04fa7 commit b11a5f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

onnx_diagnostic/torch_export_patches/patches/patch_transformers.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2097,11 +2097,11 @@ class patched_Qwen2_5_VisionTransformerPretrainedModel:
20972097

20982098
def rot_pos_emb(self, grid_thw):
20992099
pos_ids = []
2100-
for thw in grid_thw:
2100+
for thw_ in grid_thw:
21012101
# PATCHED: avoid unbind
2102-
t = thw[0]
2103-
h = thw[1]
2104-
w = thw[2]
2102+
t = thw_[0]
2103+
h = thw_[1]
2104+
w = thw_[2]
21052105
hpos_ids = torch.arange(h).unsqueeze(1).expand(-1, w)
21062106
hpos_ids = hpos_ids.reshape(
21072107
h // self.spatial_merge_size,

0 commit comments

Comments
 (0)