[autograd.Function] freevar lifting is too aggressive? #106894
Labels
dynamo-must-fix
These bugs affect TorchDynamo reliability.
module: dynamo
module: higher order operators
torch.cond and similar
oncall: pt2
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
🐛 Describe the bug
Seems like the freevar lifting things it needs to lift constants and then graph breaks if they are used in autograd.Function backwards:
gives:
cc @ezyang @anijain2305 @chauhang @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @ydwu4 @msaroufim @bdhirsh @aakhundov @wconstab @Xia-Weiwen
Error logs
No response
Minified repro
No response
Versions
main
The text was updated successfully, but these errors were encountered: