Open adamgayoso opened 2 years ago
@adamgayoso I can't seem to replicate - are you running on nightly or with 1.11?
I'll try it out on nightly in a bit.
I'm running with PyTorch v1.11 and functorch==0.1.0
hmmm now it works, I had done some stuff earlier in that session that failed though and it seems this code I posted fails only when it comes after previous code that fails.
In the case where it doesn't work, somehow the weight and the bias are getting swapped when I access attrs of orig.module
Interesting... I'll take a look at that module. Do you have any example code snippets on what's not working? Or is it not super clear how to come up with a repro?
functorch looks super cool and helpful! I was just playing around with it this morning, trying to aot compile
nn.Linear
. Maybe I'm misunderstanding the API, but I'm getting a RuntimeError