Hi,
Which version of pytorch are you using? Some autograd fix have been added to master last week that might be related. Do you see the same behavior if you use nightly builds?
If you still do, could you write a small script that I could run to reproduce the error?