This has been fixed in PyTorch in https://github.com/pytorch/pytorch/pull/40897
Attach a file by drag & drop or click to upload