当前位置:网站首页>RuntimeError: cuDNN error: CUDNN_ STATUS_ NOT_ INITIALIZED
RuntimeError: cuDNN error: CUDNN_ STATUS_ NOT_ INITIALIZED
2022-07-06 12:03:00 【Caojia xiaoyuanbao】
cuda11 function pytorch Report errors
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
resolvent :
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
Reference link :https://stackoverflow.com/questions/66588715/runtimeerror-cudnn-error-cudnn-status-not-initialized-using-pytorch
边栏推荐
猜你喜欢
Unit test - unittest framework
MongoDB
E-commerce data analysis -- salary prediction (linear regression)
2019 Tencent summer intern formal written examination
机器学习--线性回归(sklearn)
[template] KMP string matching
Oppo vooc fast charging circuit and protocol
AMBA、AHB、APB、AXI的理解
ToggleButton实现一个开关灯的效果
Priority inversion and deadlock
随机推荐
Reading notes of difficult career creation
STM32 how to locate the code segment that causes hard fault
A possible cause and solution of "stuck" main thread of RT thread
Dead loop in FreeRTOS task function
Pytorch four commonly used optimizer tests
E-commerce data analysis -- User Behavior Analysis
Gallery's image browsing and component learning
RT thread API reference manual
Comparison of solutions of Qualcomm & MTK & Kirin mobile platform USB3.0
电商数据分析--薪资预测(线性回归)
Nodejs connect mysql
Time slice polling scheduling of RT thread threads
Those commonly used tool classes and methods in hutool
MP3mini播放模块arduino<DFRobotDFPlayerMini.h>函数详解
I2C总线时序详解
Small L's test paper
vim命令行笔记
Amba, ahb, APB, Axi Understanding
The first simple case of GNN: Cora classification
机器学习--线性回归(sklearn)