27
27
def _to_core_aten (
28
28
model : torch .fx .GraphModule ,
29
29
example_inputs : Tuple [Value , ...],
30
- capture_config = _CAPTURE_CONFIG ,
31
30
) -> ExirExportedProgram :
32
31
# post autograd export. eventually this will become .to_core_aten
33
32
if not isinstance (model , torch .fx .GraphModule ):
34
33
raise ValueError (
35
34
f"Expected passed in model to be an instance of fx.GraphModule, got { type (model )} "
36
35
)
37
- core_aten_exir_ep = exir .capture (model , example_inputs , capture_config )
36
+ core_aten_exir_ep = exir .capture (model , example_inputs , _CAPTURE_CONFIG )
38
37
logging .info (f"Core ATen graph:\n { core_aten_exir_ep .exported_program .graph } " )
39
38
return core_aten_exir_ep
40
39
@@ -51,17 +50,15 @@ def _core_aten_to_edge(
51
50
def export_to_edge (
52
51
model : torch .fx .GraphModule ,
53
52
example_inputs : Tuple [Value , ...],
54
- capture_config = _CAPTURE_CONFIG ,
55
53
edge_compile_config = _EDGE_COMPILE_CONFIG ,
56
54
) -> ExirExportedProgram :
57
- core_aten_exir_ep = _to_core_aten (model , example_inputs , capture_config )
55
+ core_aten_exir_ep = _to_core_aten (model , example_inputs )
58
56
return _core_aten_to_edge (core_aten_exir_ep , edge_compile_config )
59
57
60
58
61
59
def export_to_exec_prog (
62
60
model ,
63
61
example_inputs ,
64
- capture_config = _CAPTURE_CONFIG ,
65
62
edge_compile_config = _EDGE_COMPILE_CONFIG ,
66
63
backend_config = None ,
67
64
):
0 commit comments