We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e2cd6c commit cdb5438Copy full SHA for cdb5438
examples/models/test/test_export.py
@@ -29,7 +29,7 @@ def collect_executorch_and_eager_outputs(
29
Returns a tuple containing the outputs of the eager mode model and the executorch mode model.
30
"""
31
eager_model = eager_model.eval()
32
- model = torch._export.capture_pre_autograd_graph(eager_model, example_inputs)
+ model = torch.export.export_for_training(eager_model, example_inputs).module()
33
edge_model = export_to_edge(model, example_inputs)
34
35
executorch_prog = edge_model.to_executorch()
0 commit comments