Skip to content

Commit 77aca10

Browse files
justinchubyCopilot
andcommitted
Use current opset in QMoE tests
Set the synthetic QMoE graph's default-domain import from OPSET_VERSION so its fused Swish node has a consistent schema version. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
1 parent 2b2552f commit 77aca10

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/mobius/rewrite_rules/_qmoe_fusion_test.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import onnx_ir as ir
1010
import pytest
1111

12+
from mobius._constants import OPSET_VERSION
1213
from mobius.rewrite_rules import fuse_dense_moe_to_qmoe
1314
from mobius.rewrite_rules._qmoe_fusion import _qmoe_abi_supported
1415

@@ -294,7 +295,7 @@ def q(key: str, n: int, kdim: int) -> _Quant:
294295
graph.outputs.append(final.outputs[0])
295296

296297
model = ir.Model(graph, ir_version=10, producer_name="test")
297-
model.opset_imports[""] = 21
298+
model.opset_imports[""] = OPSET_VERSION
298299
model.opset_imports["com.microsoft"] = 1
299300
return model, quants, rng.standard_normal((5, H)).astype(np.float32)
300301

0 commit comments

Comments
 (0)