@@ -83,7 +83,7 @@ def test_qnnpack_per_channel_dynamic_mm(self):
8383 )
8484
8585 # Step 2: EXIR capturing
86- capture_config = CaptureConfig (pt2_mode = True , enable_dynamic_shape = False )
86+ capture_config = CaptureConfig (enable_dynamic_shape = False )
8787 captured_mod = exir .capture (
8888 converted_mod , example_inputs , config = capture_config
8989 ).to_edge (EDGE_COMPILE_CONFIG )
@@ -115,9 +115,7 @@ def forward(self, x):
115115
116116 composite_model (* example_inputs )
117117 program = (
118- exir .capture (
119- composite_model , example_inputs , exir .CaptureConfig (pt2_mode = True )
120- )
118+ exir .capture (composite_model , example_inputs , exir .CaptureConfig ())
121119 .to_edge (EDGE_COMPILE_CONFIG )
122120 .to_executorch (config = EXECUTORCH_BACKEND_CONFIG )
123121 .program
@@ -159,7 +157,7 @@ def test_qnnpack_per_channel_dynamic_qlinear(self):
159157 )
160158
161159 # Step 2: EXIR capturing
162- capture_config = CaptureConfig (pt2_mode = True , enable_dynamic_shape = False )
160+ capture_config = CaptureConfig (enable_dynamic_shape = False )
163161 captured_mod = exir .capture (
164162 converted_mod , example_inputs , config = capture_config
165163 ).to_edge (EDGE_COMPILE_CONFIG )
@@ -202,9 +200,7 @@ def forward(self, x):
202200
203201 composite_model (* example_inputs )
204202 program = (
205- exir .capture (
206- composite_model , example_inputs , exir .CaptureConfig (pt2_mode = True )
207- )
203+ exir .capture (composite_model , example_inputs , exir .CaptureConfig ())
208204 .to_edge (EDGE_COMPILE_CONFIG )
209205 .to_executorch (config = EXECUTORCH_BACKEND_CONFIG )
210206 .program
@@ -246,7 +242,7 @@ def test_qnnpack_per_tensor_dynamic_mm(self):
246242 )
247243
248244 # Step 2: EXIR capturing
249- capture_config = CaptureConfig (pt2_mode = True , enable_dynamic_shape = False )
245+ capture_config = CaptureConfig (enable_dynamic_shape = False )
250246 captured_mod = exir .capture (
251247 converted_mod , example_inputs , config = capture_config
252248 ).to_edge (EDGE_COMPILE_CONFIG )
@@ -321,7 +317,7 @@ def test_qnnpack_per_tensor_dynamic_qlinear(self):
321317 )
322318
323319 # Step 2: EXIR capturing
324- capture_config = CaptureConfig (pt2_mode = True , enable_dynamic_shape = False )
320+ capture_config = CaptureConfig (enable_dynamic_shape = False )
325321 captured_mod = exir .capture (
326322 converted_mod , example_inputs , config = capture_config
327323 ).to_edge (EDGE_COMPILE_CONFIG )
@@ -406,7 +402,7 @@ def test_qnnpack_per_channel_dynamic_mm_with_dynamic_shape(self):
406402 )
407403
408404 # Step 2: EXIR capturing
409- capture_config = CaptureConfig (pt2_mode = True , enable_dynamic_shape = True )
405+ capture_config = CaptureConfig (enable_dynamic_shape = True )
410406 captured_mod = exir .capture (
411407 converted_mod , example_inputs , config = capture_config
412408 ).to_edge (EDGE_COMPILE_CONFIG )
@@ -438,9 +434,7 @@ def forward(self, x):
438434
439435 composite_model (* example_inputs )
440436 program = (
441- exir .capture (
442- composite_model , example_inputs , exir .CaptureConfig (pt2_mode = True )
443- )
437+ exir .capture (composite_model , example_inputs , exir .CaptureConfig ())
444438 .to_edge (EDGE_COMPILE_CONFIG )
445439 .to_executorch (config = EXECUTORCH_BACKEND_CONFIG )
446440 .program
@@ -483,7 +477,7 @@ def test_qnnpack_per_channel_dynamic_qlinear_via_partitioner(self):
483477 )
484478
485479 # Step 2: EXIR capturing
486- capture_config = CaptureConfig (pt2_mode = True , enable_dynamic_shape = False )
480+ capture_config = CaptureConfig (enable_dynamic_shape = False )
487481 captured_mod = exir .capture (
488482 converted_mod , example_inputs , config = capture_config
489483 ).to_edge (EDGE_COMPILE_CONFIG )
@@ -538,7 +532,7 @@ def test_qnnpack_per_channel_dynamic_qlinear_via_partitioner(self):
538532 # composite_model(*example_inputs)
539533 # program = (
540534 # exir.capture(
541- # composite_model, example_inputs, exir.CaptureConfig(pt2_mode=True )
535+ # composite_model, example_inputs, exir.CaptureConfig()
542536 # )
543537 # .to_edge(EDGE_COMPILE_CONFIG)
544538 # .to_executorch()
0 commit comments