问 题:D:pythonenvsyolov5libsite-packagestorchautocast_mode.py:141: UserWarning: User provided device_type of 'cuda', but CUDA is not available. Disabling
warnings.warn('User provided device_type of 'cuda', but CUDA is not available. Disabling')
原 因:cuda与pytorch不匹配
import torch
print(torch.__version__)
print(torch.cuda.is_available())
解决方法:改autocast_mode.py中注释输出语句



