If you are using an older PyTorch version, could you update to the latest stable release (1.9.0) or the nightly one?
In case you are still hitting this issue, could you post an executable code snippet as well as the output of python -m torch.utils.collect_env here, please?