docker task5

简介: 天池龙珠计划Docker训练营

天池龙珠计划Docker训练营

没用GPU的报错如下:

---------------------------------------------------------------------------

RuntimeError                              Traceback (most recent call last)

<ipython-input-3-69f55cbb8b56> in <module>

     4 a = torch.randn(3,3)

     5 b = torch.randn(3,3)

----> 6a = a.to(device)

     7 b = b.to(device)

     8 c = torch.matmul(a,b)


/opt/conda/lib/python3.6/site-packages/torch/cuda/__init__.py in _lazy_init()

   170         # This function throws if there's a driver initialization error, no GPUs

   171         # are found or any other error occurs

--> 172         torch._C._cuda_init()

   173         # Some of the queued calls may reentrantly call _lazy_init();

   174         # we need to just return without initializing in that case.


RuntimeError: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx

相关文章
|
Docker 容器
docker task3
天池龙珠计划docker训练营 dockerfile
186 0
|
Docker Python 容器
docker task4
天池龙珠计划docker训练营 练习赛问题
226 0
|
存储 人工智能 Cloud Native
docker task1
天池龙珠计划docker训练营
221 0
|
1月前
|
缓存 前端开发 Docker
Docker Layer Caching:加速你的容器构建
Docker Layer Caching:加速你的容器构建
|
2月前
|
运维 持续交付 开发者
Docker:重塑现代应用开发的容器革命
Docker:重塑现代应用开发的容器革命

热门文章

最新文章