当前位置:网站首页>RuntimeError: cuDNN error: CUDNN_STATUS_NOT_INITIALIZED
RuntimeError: cuDNN error: CUDNN_STATUS_NOT_INITIALIZED
2022-07-06 09:16:00 【曹家小圆宝】
cuda11运行pytorch报错
Traceback (most recent call last):
File "train.py", line 220, in <module>
main(args)
File "train.py", line 89, in main
train(model, args, train_loader, criterion, Hash_center, optimizer, epoch, two_loss_epoch)
File "train.py", line 121, in train
y = model(input)
File "/root/miniconda3/envs/mocov3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "/root/miniconda3/envs/mocov3/lib/python3.7/site-packages/torch/nn/parallel/data_parallel.py", line 167, in forward
outputs = self.parallel_apply(replicas, inputs, kwargs)
File "/root/miniconda3/envs/mocov3/lib/python3.7/site-packages/torch/nn/parallel/data_parallel.py", line 177, in parallel_apply
return parallel_apply(replicas, inputs, kwargs, self.device_ids[:len(replicas)])
File "/root/miniconda3/envs/mocov3/lib/python3.7/site-packages/torch/nn/parallel/parallel_apply.py", line 86, in parallel_apply
output.reraise()
File "/root/miniconda3/envs/mocov3/lib/python3.7/site-packages/torch/_utils.py", line 429, in reraise
raise self.exc_type(msg)
RuntimeError: Caught RuntimeError in replica 0 on device 0.
Original Traceback (most recent call last):
File "/root/miniconda3/envs/mocov3/lib/python3.7/site-packages/torch/nn/parallel/parallel_apply.py", line 61, in _worker
output = module(*input, **kwargs)
File "/root/miniconda3/envs/mocov3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "/mnt/caojie/workspace/Hadamard-Matrix-for-hashing/network.py", line 35, in forward
x = self.feature_layers(x)
File "/root/miniconda3/envs/mocov3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "/root/miniconda3/envs/mocov3/lib/python3.7/site-packages/torch/nn/modules/container.py", line 119, in forward
input = module(input)
File "/root/miniconda3/envs/mocov3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "/root/miniconda3/envs/mocov3/lib/python3.7/site-packages/torch/nn/modules/conv.py", line 399, in forward
return self._conv_forward(input, self.weight, self.bias)
File "/root/miniconda3/envs/mocov3/lib/python3.7/site-packages/torch/nn/modules/conv.py", line 396, in _conv_forward
self.padding, self.dilation, self.groups)
RuntimeError: cuDNN error: CUDNN_STATUS_NOT_INITIALIZED
解决方法:
pip install torch==1.8.0+cu111 torchvision==0.9.0+cu111 torchaudio==0.8.0 -f https://download.pytorch.org/whl/torch_stable.html
边栏推荐
- 使用LinkedHashMap实现一个LRU算法的缓存
- [CDH] modify the default port 7180 of cloudera manager in cdh/cdp environment
- 互联网协议详解
- XML file explanation: what is XML, XML configuration file, XML data file, XML file parsing tutorial
- 4、安装部署Spark(Spark on Yarn模式)
- 2019 Tencent summer intern formal written examination
- 机器学习--线性回归(sklearn)
- PyTorch四种常用优化器测试
- Togglebutton realizes the effect of switching lights
- Redis面试题
猜你喜欢
STM32型号与Contex m对应关系
Time slice polling scheduling of RT thread threads
FTP file upload file implementation, regularly scan folders to upload files in the specified format to the server, C language to realize FTP file upload details and code case implementation
2019 Tencent summer intern formal written examination
第4阶段 Mysql数据库
Principle and implementation of MySQL master-slave replication
Small L's test paper
STM32 如何定位导致发生 hard fault 的代码段
E-commerce data analysis -- User Behavior Analysis
[Flink] Flink learning
随机推荐
几个关于指针的声明【C语言】
4. Install and deploy spark (spark on Yan mode)
Dead loop in FreeRTOS task function
mysql实现读写分离
JS array + array method reconstruction
Linux yum安装MySQL
FTP文件上传文件实现,定时扫描文件夹上传指定格式文件文件到服务器,C语言实现FTP文件上传详解及代码案例实现
[template] KMP string matching
GNN的第一个简单案例:Cora分类
【CDH】CDH5.16 配置 yarn 任务集中分配设置不生效问题
arduino UNO R3的寄存器写法(1)-----引脚电平状态变化
OPPO VOOC快充电路和协议
共用体(union)详解【C语言】
Correspondence between STM32 model and contex M
关键字 inline (内联函数)用法解析【C语言】
ESP8266使用arduino连接阿里云物联网
MongoDB
RT-Thread API参考手册
Oppo vooc fast charging circuit and protocol
Common regular expression collation