成功解决torch\cuda\__init__.py“, line 208, in check_error raise Cuda Error(res) torch.cuda.Cuda Error: C

十年热恋 提交于 2020-10-14 12:26:24

成功解决torch\cuda\__init__.py", line 208, in check_error raise Cuda Error(res) torch.cuda.Cuda Error: CUDA driver version is insufficient for CUDA runtime version (35)

 

 

目录

解决问题

解决思路

解决方法


 

 

 

解决问题

Traceback (most recent call last):
  File "image_animation.py", line 113, in <module>
    kp_driving_initial = kp_detector(source1)
  File "F:\File_Anaconda\CV2020_RealTimeImageAnimation\envs\lib\site-packages\torch\nn\modules\module.py", line 489, in __call__
    result = self.forward(*input, **kwargs)
  File "F:\File_Anaconda\CV2020_RealTimeImageAnimation\envs\lib\site-packages\torch\nn\parallel\data_parallel.py", line 139, in forward
    inputs, kwargs = self.scatter(inputs, kwargs, self.device_ids)
  File "F:\File_Anaconda\CV2020_RealTimeImageAnimation\envs\lib\site-packages\torch\nn\parallel\data_parallel.py", line 150, in scatter
    return scatter_kwargs(inputs, kwargs, device_ids, dim=self.dim)
  File "F:\File_Anaconda\CV2020_RealTimeImageAnimation\envs\lib\site-packages\torch\nn\parallel\scatter_gather.py", line 35, in scatter_kwargs
    inputs = scatter(inputs, target_gpus, dim) if inputs else []
  File "F:\File_Anaconda\CV2020_RealTimeImageAnimation\envs\lib\site-packages\torch\nn\parallel\scatter_gather.py", line 28, in scatter
    return scatter_map(inputs)
  File "F:\File_Anaconda\CV2020_RealTimeImageAnimation\envs\lib\site-packages\torch\nn\parallel\scatter_gather.py", line 15, in scatter_map
    return list(zip(*map(scatter_map, obj)))
  File "F:\File_Anaconda\CV2020_RealTimeImageAnimation\envs\lib\site-packages\torch\nn\parallel\scatter_gather.py", line 13, in scatter_map
    return Scatter.apply(target_gpus, None, dim, obj)
  File "F:\File_Anaconda\CV2020_RealTimeImageAnimation\envs\lib\site-packages\torch\nn\parallel\_functions.py", line 95, in forward
    main_stream.wait_stream(streams[i])
  File "F:\File_Anaconda\CV2020_RealTimeImageAnimation\envs\lib\site-packages\torch\cuda\streams.py", line 55, in wait_stream
    self.wait_event(stream.record_event())
  File "F:\File_Anaconda\CV2020_RealTimeImageAnimation\envs\lib\site-packages\torch\cuda\streams.py", line 68, in record_event
    event = Event()
  File "F:\File_Anaconda\CV2020_RealTimeImageAnimation\envs\lib\site-packages\torch\cuda\streams.py", line 162, in __init__
    check_error(self._cudart.cudaEventCreateWithFlags(ctypes.byref(ptr), ctypes.c_uint(flags)))
  File "F:\File_Anaconda\CV2020_RealTimeImageAnimation\envs\lib\site-packages\torch\cuda\__init__.py", line 208, in check_error
    raise CudaError(res)
torch.cuda.CudaError: CUDA driver version is insufficient for CUDA runtime version (35)

 

解决思路

torch\cuda\\uu init_uy.py”,第208行,检查错误
引发Cuda错误(res)
r错误:CUDA驱动程序版本不足以支持CUDA运行时版本(35)

 

 

解决方法

更新……

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!