After that, I noticed some version discrepancies. AttributeError: module 'torch' has no attribute 'cuda'è§£å³åæ³. torch.cuda is used to set up and run CUDA operations. Pytorch CPU CUDA device load without gpu. I tried to reinstall the pytorch and update to the newest version (1.4.0), still exists error. Pytorch:module 'torch' has no attribute 'bool Versions of relevant libraries: AttributeError: module 'torch._C' has no attribute '_cuda_setDevice'ï¼å¨pythonå½ä»¤åé¢å ä¸ --gpu_ids -1ï¼ . attributeErrorï¼module'torch.cuda.amp'没æå±æ§'autocast'. How to get rid of this? module AttributeError: module 'torch.cuda.amp' has no attribute 'autocast'. Follow the steps in readme.md. torch I am using a university server with a single p100 GPU, python 3.9.1, torch 1.7.1. when I try to run the detr code from the command line using. AttributeError: module 'torch.cuda' has no attribute 'amp' I try to install pytorch 1.6.0 with pip. module please help I just sent the iynb model I need to translate .device (0.4) to â¦