I filed an issue at https://github.com/pytorch/pytorch/issues/15602 31
It will for sure be fixed in our next minor release on Jan 15th, and will be fixed in our nightlies much sooner than that, I’m having it looked at with high priority.
Really sorry for the bug!