@@ -83,7 +83,7 @@ def test_qnnpack_per_channel_dynamic_mm(self):
83
83
)
84
84
85
85
# Step 2: EXIR capturing
86
- capture_config = CaptureConfig (pt2_mode = True , enable_dynamic_shape = False )
86
+ capture_config = CaptureConfig (enable_dynamic_shape = False )
87
87
captured_mod = exir .capture (
88
88
converted_mod , example_inputs , config = capture_config
89
89
).to_edge (EDGE_COMPILE_CONFIG )
@@ -115,9 +115,7 @@ def forward(self, x):
115
115
116
116
composite_model (* example_inputs )
117
117
program = (
118
- exir .capture (
119
- composite_model , example_inputs , exir .CaptureConfig (pt2_mode = True )
120
- )
118
+ exir .capture (composite_model , example_inputs , exir .CaptureConfig ())
121
119
.to_edge (EDGE_COMPILE_CONFIG )
122
120
.to_executorch (config = EXECUTORCH_BACKEND_CONFIG )
123
121
.program
@@ -159,7 +157,7 @@ def test_qnnpack_per_channel_dynamic_qlinear(self):
159
157
)
160
158
161
159
# Step 2: EXIR capturing
162
- capture_config = CaptureConfig (pt2_mode = True , enable_dynamic_shape = False )
160
+ capture_config = CaptureConfig (enable_dynamic_shape = False )
163
161
captured_mod = exir .capture (
164
162
converted_mod , example_inputs , config = capture_config
165
163
).to_edge (EDGE_COMPILE_CONFIG )
@@ -202,9 +200,7 @@ def forward(self, x):
202
200
203
201
composite_model (* example_inputs )
204
202
program = (
205
- exir .capture (
206
- composite_model , example_inputs , exir .CaptureConfig (pt2_mode = True )
207
- )
203
+ exir .capture (composite_model , example_inputs , exir .CaptureConfig ())
208
204
.to_edge (EDGE_COMPILE_CONFIG )
209
205
.to_executorch (config = EXECUTORCH_BACKEND_CONFIG )
210
206
.program
@@ -246,7 +242,7 @@ def test_qnnpack_per_tensor_dynamic_mm(self):
246
242
)
247
243
248
244
# Step 2: EXIR capturing
249
- capture_config = CaptureConfig (pt2_mode = True , enable_dynamic_shape = False )
245
+ capture_config = CaptureConfig (enable_dynamic_shape = False )
250
246
captured_mod = exir .capture (
251
247
converted_mod , example_inputs , config = capture_config
252
248
).to_edge (EDGE_COMPILE_CONFIG )
@@ -321,7 +317,7 @@ def test_qnnpack_per_tensor_dynamic_qlinear(self):
321
317
)
322
318
323
319
# Step 2: EXIR capturing
324
- capture_config = CaptureConfig (pt2_mode = True , enable_dynamic_shape = False )
320
+ capture_config = CaptureConfig (enable_dynamic_shape = False )
325
321
captured_mod = exir .capture (
326
322
converted_mod , example_inputs , config = capture_config
327
323
).to_edge (EDGE_COMPILE_CONFIG )
@@ -406,7 +402,7 @@ def test_qnnpack_per_channel_dynamic_mm_with_dynamic_shape(self):
406
402
)
407
403
408
404
# Step 2: EXIR capturing
409
- capture_config = CaptureConfig (pt2_mode = True , enable_dynamic_shape = True )
405
+ capture_config = CaptureConfig (enable_dynamic_shape = True )
410
406
captured_mod = exir .capture (
411
407
converted_mod , example_inputs , config = capture_config
412
408
).to_edge (EDGE_COMPILE_CONFIG )
@@ -438,9 +434,7 @@ def forward(self, x):
438
434
439
435
composite_model (* example_inputs )
440
436
program = (
441
- exir .capture (
442
- composite_model , example_inputs , exir .CaptureConfig (pt2_mode = True )
443
- )
437
+ exir .capture (composite_model , example_inputs , exir .CaptureConfig ())
444
438
.to_edge (EDGE_COMPILE_CONFIG )
445
439
.to_executorch (config = EXECUTORCH_BACKEND_CONFIG )
446
440
.program
@@ -483,7 +477,7 @@ def test_qnnpack_per_channel_dynamic_qlinear_via_partitioner(self):
483
477
)
484
478
485
479
# Step 2: EXIR capturing
486
- capture_config = CaptureConfig (pt2_mode = True , enable_dynamic_shape = False )
480
+ capture_config = CaptureConfig (enable_dynamic_shape = False )
487
481
captured_mod = exir .capture (
488
482
converted_mod , example_inputs , config = capture_config
489
483
).to_edge (EDGE_COMPILE_CONFIG )
@@ -538,7 +532,7 @@ def test_qnnpack_per_channel_dynamic_qlinear_via_partitioner(self):
538
532
# composite_model(*example_inputs)
539
533
# program = (
540
534
# exir.capture(
541
- # composite_model, example_inputs, exir.CaptureConfig(pt2_mode=True )
535
+ # composite_model, example_inputs, exir.CaptureConfig()
542
536
# )
543
537
# .to_edge(EDGE_COMPILE_CONFIG)
544
538
# .to_executorch()
0 commit comments