• <legend id='feWyB'><style id='feWyB'><dir id='feWyB'><q id='feWyB'></q></dir></style></legend>

    1. <tfoot id='feWyB'></tfoot>
        <bdo id='feWyB'></bdo><ul id='feWyB'></ul>

    2. <small id='feWyB'></small><noframes id='feWyB'>

        <i id='feWyB'><tr id='feWyB'><dt id='feWyB'><q id='feWyB'><span id='feWyB'><b id='feWyB'><form id='feWyB'><ins id='feWyB'></ins><ul id='feWyB'></ul><sub id='feWyB'></sub></form><legend id='feWyB'></legend><bdo id='feWyB'><pre id='feWyB'><center id='feWyB'></center></pre></bdo></b><th id='feWyB'></th></span></q></dt></tr></i><div id='feWyB'><tfoot id='feWyB'></tfoot><dl id='feWyB'><fieldset id='feWyB'></fieldset></dl></div>

        运行时错误:cuDNN错误:CUDNN_STATUS_NOT_使用pytorch初始化

        RuntimeError: cuDNN error: CUDNN_STATUS_NOT_INITIALIZED using pytorch(运行时错误:cuDNN错误:CUDNN_STATUS_NOT_使用pytorch初始化)
          <bdo id='OMRf5'></bdo><ul id='OMRf5'></ul>
          • <tfoot id='OMRf5'></tfoot>
            <legend id='OMRf5'><style id='OMRf5'><dir id='OMRf5'><q id='OMRf5'></q></dir></style></legend>

              <tbody id='OMRf5'></tbody>

            <small id='OMRf5'></small><noframes id='OMRf5'>

            1. <i id='OMRf5'><tr id='OMRf5'><dt id='OMRf5'><q id='OMRf5'><span id='OMRf5'><b id='OMRf5'><form id='OMRf5'><ins id='OMRf5'></ins><ul id='OMRf5'></ul><sub id='OMRf5'></sub></form><legend id='OMRf5'></legend><bdo id='OMRf5'><pre id='OMRf5'><center id='OMRf5'></center></pre></bdo></b><th id='OMRf5'></th></span></q></dt></tr></i><div id='OMRf5'><tfoot id='OMRf5'></tfoot><dl id='OMRf5'><fieldset id='OMRf5'></fieldset></dl></div>
                  本文介绍了运行时错误:cuDNN错误:CUDNN_STATUS_NOT_使用pytorch初始化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试运行一个简单的pytorch示例代码。使用CPU可以很好地工作。但在使用GPU时,我收到以下错误信息:

                  Traceback (most recent call last):
                    File "<stdin>", line 1, in <module>
                    File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 889, in _call_impl
                      result = self.forward(*input, **kwargs)
                    File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/conv.py", line 263, in forward
                      return self._conv_forward(input, self.weight, self.bias)
                    File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/conv.py", line 260, in _conv_forward
                      self.padding, self.dilation, self.groups)
                  RuntimeError: cuDNN error: CUDNN_STATUS_NOT_INITIALIZED
                  

                  我尝试运行的代码如下:

                  import torch
                  from torch import nn
                  m = nn.Conv1d(16, 33, 3, stride=2)
                  m=m.to('cuda')
                  input = torch.randn(20, 16, 50)
                  input=input.to('cuda')
                  output = m(input)
                  

                  我在带有CUDA版本10.2的NVIDIA坞站中运行此代码,我的GPU是RTX 2070

                  推荐答案

                  关于此here有一些讨论。我也有同样的问题,但是使用CUDA 11.1为我解决了这个问题。

                  这正是pip命令

                  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
                  

                  这篇关于运行时错误:cuDNN错误:CUDNN_STATUS_NOT_使用pytorch初始化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  GUI Freezes while downloading PyQt5 and Pytube(GUI在下载PyQt5和Pytube时冻结)
                  How to solve memory issues while multiprocessing using Pool.map()?(如何解决使用Pool.map()进行多处理时的内存问题?)
                  Python - How to use FastAPI and uvicorn.run without blocking the thread?(Python-如何使用FastAPI和uvicorn.run而不阻塞线程?)
                  How to increment a shared counter from multiple processes?(如何从多个进程递增共享计数器?)
                  Using pika, how to connect to rabbitmq running in docker, started with docker-compose with external network?(使用pika,如何连接运行在docker中的rabbitmq,从docker开始-与外部网络连接?)
                  How to use .rolling() on each row of a Pandas dataframe?(如何对 pandas 数据帧的每一行使用.roll()?)

                    <tbody id='teQaH'></tbody>
                  • <legend id='teQaH'><style id='teQaH'><dir id='teQaH'><q id='teQaH'></q></dir></style></legend>
                    <i id='teQaH'><tr id='teQaH'><dt id='teQaH'><q id='teQaH'><span id='teQaH'><b id='teQaH'><form id='teQaH'><ins id='teQaH'></ins><ul id='teQaH'></ul><sub id='teQaH'></sub></form><legend id='teQaH'></legend><bdo id='teQaH'><pre id='teQaH'><center id='teQaH'></center></pre></bdo></b><th id='teQaH'></th></span></q></dt></tr></i><div id='teQaH'><tfoot id='teQaH'></tfoot><dl id='teQaH'><fieldset id='teQaH'></fieldset></dl></div>

                        <tfoot id='teQaH'></tfoot>

                        1. <small id='teQaH'></small><noframes id='teQaH'>

                          • <bdo id='teQaH'></bdo><ul id='teQaH'></ul>