File tree Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ def test_fp32_mv2(self):
35
35
36
36
(
37
37
Tester (self .mv2 , self .model_inputs )
38
- .export (Export ( CaptureConfig ( enable_aot = True )) )
38
+ .export ()
39
39
.to_edge ()
40
40
.check (list (self .all_operators ))
41
41
.partition ()
@@ -56,7 +56,7 @@ def test_qs8_mv2(self):
56
56
(
57
57
Tester (self .mv2 , self .model_inputs )
58
58
.quantize ()
59
- .export (Export ( CaptureConfig ( enable_aot = True )) )
59
+ .export ()
60
60
.to_edge ()
61
61
.check (list (ops_after_quantization ))
62
62
.partition (Partition (partitioner = XnnpackQuantizedPartitioner ))
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ class TestMobileNetV3(unittest.TestCase):
37
37
def test_fp32_mv3 (self ):
38
38
(
39
39
Tester (self .mv3 , self .model_inputs )
40
- .export (Export ( CaptureConfig ( enable_aot = True )) )
40
+ .export ()
41
41
.to_edge ()
42
42
.check (list (self .all_operators ))
43
43
.partition ()
@@ -66,7 +66,7 @@ def test_qs8_mv3(self):
66
66
(
67
67
Tester (self .mv3 , self .model_inputs )
68
68
.quantize ()
69
- .export (Export ( CaptureConfig ( enable_aot = True )) )
69
+ .export ()
70
70
.to_edge ()
71
71
.check (list (ops_after_quantization ))
72
72
.partition (Partition (partitioner = XnnpackQuantizedPartitioner ))
Original file line number Diff line number Diff line change 14
14
from executorch import exir
15
15
from executorch .backends .xnnpack .partition .xnnpack_partitioner import XnnpackPartitioner
16
16
from executorch .backends .xnnpack .passes import XNNPACKPassManager
17
- from executorch .backends .xnnpack .utils .configs import (
18
- get_xnnpack_capture_config ,
19
- get_xnnpack_edge_compile_config ,
20
- )
17
+ from executorch .backends .xnnpack .utils .configs import get_xnnpack_edge_compile_config
21
18
from executorch .exir import (
22
19
CaptureConfig ,
23
20
EdgeCompileConfig ,
@@ -124,7 +121,7 @@ def graph_module(self) -> str:
124
121
@register_stage
125
122
class Export (Stage ):
126
123
def __init__ (self , capture_config : Optional [CaptureConfig ] = None ):
127
- self .capture_conf = capture_config or get_xnnpack_capture_config ( )
124
+ self .capture_conf = capture_config or CaptureConfig ( enable_aot = True )
128
125
self .exir_exported_program = None
129
126
130
127
def run (self , artifact : torch .nn .Module , inputs ) -> None :
You can’t perform that action at this time.
0 commit comments