torch.export
code that includes torch.autograd.grad
#125984
Labels
oncall: export
oncall: pt2
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
馃悰 Describe the bug
The following minimal example (based on a large real-world model which fails the same way) fails with errors in
torch.export
:printing (omitting backtraces):
With
strict=True
, it errors asIs exporting through a module that includes internal calls to the autograd engine a supported usecase for
torch.export
(and other related APIs, liketorch._export.aot_compile
)?Error logs
No response
Minified repro
No response
Versions
PyTorch 2.3.0
cc @ezyang @msaroufim @bdhirsh @anijain2305 @chauhang @avikchaudhuri @gmagogsfm @zhxchen17 @tugsbayasgalan @angelayi @suo @ydwu4
The text was updated successfully, but these errors were encountered: