Pre-dispatch export doesn't work with non-param/buffer tensor subclasses #153387
Labels
export-triaged
This tag is used to tag issues that have been looked by PT2 Export team and determined the next step
oncall: export
oncall: pt2
Uh oh!
There was an error while loading. Please reload this page.
🐛 Describe the bug
This piece of code doesn't work:
I'm erroring with the following: P1809463696
The code works if I wrap
self.p1
withtorch.nn.Parameter
ortorch.nn.Buffer
. It also works if I change the_export
call to bepre_dispatch=False
. I also get the same error if I construct a tensor subclass within the forward function.Versions
main
cc @chauhang @penguinwu @avikchaudhuri @gmagogsfm @zhxchen17 @tugsbayasgalan @suo @ydwu4
The text was updated successfully, but these errors were encountered: