Skip to content

Commit 06ce226

Browse files
SaoirseARMfacebook-github-bot
authored andcommitted
Update aot_arm_compiler to use export_for_training (#5581)
Summary: Remove capture_pre_autograd_graph and use updated export_for_training within the aot_arm_compiler.py script Pull Request resolved: #5581 Reviewed By: kirklandsign Differential Revision: D63367930 Pulled By: digantdesai fbshipit-source-id: 3b161432d533d8debcf7fdfdb244b69fa48adc8d
1 parent c222a44 commit 06ce226

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/arm/aot_arm_compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ def get_args():
288288
model = model.eval()
289289

290290
# pre-autograd export. eventually this will become torch.export
291-
model = torch._export.capture_pre_autograd_graph(model, example_inputs)
291+
model = torch.export.export_for_training(model, example_inputs).module()
292292

293293
# Quantize if required
294294
if args.quantize:

0 commit comments

Comments
 (0)