Could you update PyTorch to the latest release (1.9.0) or the nightly and rerun the script? In case you are still seeing issues, could you post the output of python -m torch.utils.collect_env, please?