File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2929
3030from executorch .extension .export_util .utils import export_to_edge , save_pte_program
3131from executorch .extension .llm .tokenizer .utils import get_tokenizer
32+ from torch ._export import capture_pre_autograd_graph
3233from torch .ao .quantization .quantize_pt2e import convert_pt2e , prepare_pt2e
3334from torch .ao .quantization .quantizer import Quantizer
3435from torch .ao .quantization .quantizer .composable_quantizer import ComposableQuantizer
35- from torch .export import export_for_training
3636from torch .nn .attention import SDPBackend
3737
3838FORMAT = "[%(levelname)s %(asctime)s %(filename)s:%(lineno)s] %(message)s"
@@ -190,9 +190,9 @@ def capture_pre_autograd_graph(self) -> "LLMEdgeManager":
190190 strict = True ,
191191 ).module ()
192192 else :
193- self .pre_autograd_graph_module = export_for_training (
193+ self .pre_autograd_graph_module = capture_pre_autograd_graph (
194194 self .model , self .example_inputs , dynamic_shapes = dynamic_shape
195- ). module ()
195+ )
196196
197197 return self
198198
You can’t perform that action at this time.
0 commit comments