Skip to content

Commit 5b39d9e

Browse files
committed
fix
1 parent 5fa04dd commit 5b39d9e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

onnx_diagnostic/export/onnx_plug.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@ def __init__(
188188
self.kwargs_name = [p for p in params if p in self.kwargs]
189189
self.verbose = verbose
190190
self.custom_op = self._register()
191-
assert "com.microsoft" in {d.domain for d in function_proto.opset_import}
192191

193192
@property
194193
def domain(self) -> str:

onnx_diagnostic/torch_export_patches/patches/_patch_transformers_qwen2_5.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ def LoopMHAAttention(
4444
seq_axis = op.Constant(value_ints=[1])
4545
seq_axis_int32 = op.Cast(seq_axis, to=onnx.TensorProto.INT32)
4646
attn_output = op.Slice(value_3d, [0], [0], seq_axis)
47-
for i in range(num_patches):
48-
i_1d = op.Reshape(i, [1])
47+
for i_patch in range(num_patches):
48+
i_1d = op.Reshape(i_patch, [1])
4949
i_plus_1_1d = i_1d + 1
5050
start = op.Gather(cu_seqlens, i_1d, axis=0)
5151
end = op.Gather(cu_seqlens, i_plus_1_1d, axis=0)

0 commit comments

Comments
 (0)