Hi, this might be a bug if it is working fine with an older version of torch/cuda.
Could you file an issue to Issues · pytorch/pytorch · GitHub 6 with a detailed repro so that we can investigate? Thank you!