|
12 | 12 | from onnx_diagnostic.export.api import to_onnx |
13 | 13 |
|
14 | 14 |
|
15 | | -class TestControlFlow(ExtTestCase): |
| 15 | +class TestControlFlowOnnx(ExtTestCase): |
16 | 16 | @never_test() |
17 | 17 | def test_loop_one_research(self): |
18 | 18 | class Model(torch.nn.Module): |
@@ -70,7 +70,7 @@ def body(i, x): |
70 | 70 | model, (n_iter, x), dynamic_shapes=({}, ({0: torch.export.Dim.DYNAMIC})) |
71 | 71 | ) |
72 | 72 | self.assertIn( |
73 | | - "torch.ops.onnx_higher_ops.loop_for_onnx_TestControlFlow_test_loop_one_custom_L_Model_forward_L_body_", |
| 73 | + "torch.ops.onnx_higher_ops.loop_for_onnx_TestControlFlowOnnx_test_loop_one_custom_L_Model_forward_L_body_", |
74 | 74 | str(ep), |
75 | 75 | ) |
76 | 76 |
|
@@ -104,7 +104,7 @@ def body(i, x): |
104 | 104 | model, (n_iter, x), dynamic_shapes=({}, ({0: torch.export.Dim.DYNAMIC})) |
105 | 105 | ) |
106 | 106 | self.assertIn( |
107 | | - "torch.ops.onnx_higher_ops.loop_for_TestControlFlow_test_loop_one_custom_different_opset_L_Model_forward_L_body_", |
| 107 | + "torch.ops.onnx_higher_ops.loop_for_onnx_TestControlFlowOnnx_test_loop_one_custom_different_opset_L_Model_forward_L_body_", |
108 | 108 | str(ep), |
109 | 109 | ) |
110 | 110 |
|
@@ -142,7 +142,7 @@ def body(i, x): |
142 | 142 | model, (n_iter, x), dynamic_shapes=({}, ({0: torch.export.Dim.DYNAMIC})) |
143 | 143 | ) |
144 | 144 | self.assertIn( |
145 | | - "torch.ops.onnx_higher_ops.loop_for_onnx_TestControlFlow_test_loop_two_custom_L_Model_forward_L_body_", |
| 145 | + "torch.ops.onnx_higher_ops.loop_for_onnx_TestControlFlowOnnx_test_loop_two_custom_L_Model_forward_L_body_", |
146 | 146 | str(ep), |
147 | 147 | ) |
148 | 148 |
|
@@ -177,7 +177,7 @@ def body(i, x): |
177 | 177 | model, (n_iter, x), dynamic_shapes=({}, ({0: torch.export.Dim.DYNAMIC})) |
178 | 178 | ) |
179 | 179 | self.assertIn( |
180 | | - "torch.ops.onnx_higher_ops.loop_for_onnx_TestControlFlow_test_loop_two_custom_reduction_dim_L_Model_forward_L_body_", |
| 180 | + "torch.ops.onnx_higher_ops.loop_for_onnx_TestControlFlowOnnx_test_loop_two_custom_reduction_dim_L_Model_forward_L_body_", |
181 | 181 | str(ep), |
182 | 182 | ) |
183 | 183 |
|
|
0 commit comments