【error】 argument 1: lt;class 'TypeError'gt;: Don't know how to convert parameter 1
今天出现了很奇怪的错误:
Traceback (most recent call last):File "main_batch.py", line 175, in <module>main(my_args)File "main_batch.py", line 102, in mainseq2seq = seq2seq.cuda() File "/。。anaconda3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 216, in cudareturn self._apply(lambda t: t.cuda(device))File "。。naconda3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 146, in _applymodule._apply(fn)File "/。。naconda3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 146, in _applymodule._apply(fn)File "/。。/anaconda3/lib/python3.6/site-packages/torch/nn/modules/rnn.py", line 123, in _applyself.flatten_parameters()File "。。anaconda3/lib/python3.6/site-packages/torch/nn/modules/rnn.py", line 85, in flatten_parametershandle = cudnn.get_handle()File "。。/anaconda3/lib/python3.6/site-packages/torch/backends/cudnn/__init__.py", line 296, in get_handlehandle = CuDNNHandle()File "。。naconda3/lib/python3.6/site-packages/torch/backends/cudnn/__init__.py", line 110, in __init__check_error(lib.cudnnCreate(ctypes.byref(ptr)))File "/。。/anaconda3/lib/python3.6/site-packages/torch/backends/cudnn/__init__.py", line 283, in check_errorraise CuDNNError(status)
torch.backends.cudnn.CuDNNError: 4: b'CUDNN_STATUS_INTERNAL_ERROR'
Exception ignored in: <bound method CuDNNHandle.__del__ of <torch.backends.cudnn.CuDNNHandle object at 0x7fd3cde68898>>
Traceback (most recent call last):File "/。。anaconda3/lib/python3.6/site-packages/torch/backends/cudnn/__init__.py", line 114, in __del__check_error(lib.cudnnDestroy(self))
ctypes.ArgumentError: argument 1: <class 'TypeError'>: Don't know how to convert parameter 1
如上文所示为报错信息。
百度无果。
由于程序之前还能跑,突然出现了这样的错误有些手足无措。
查看出错行数与信息,发现是cuda内部问题。
于是执行命令
CUDA_VISIBLE_DEVICES=2 python main_batch.py
错误解决。
【error】 argument 1: lt;class 'TypeError'gt;: Don't know how to convert parameter 1相关推荐
- Latex【Error】Reference:Something‘s wrong--perhaps a missing \item. \end{thebibliography} 参考文献报错
Latex[Error]Reference:Something's wrong–perhaps a missing \item. \end{thebibliography} 参考文献报错 提示:Som ...
- 【error】_smartbi数据集超出最大行数: DataRows > 1000
[error]_smartbi数据集超出最大行数: DataRows > 1000 原因是smartbi报表的最大行数是10000,数据行超出范围外,将会报此错误! 解决方法: 参考-电子表格报 ...
- 【Error】 NotImplementedError raise NotImplementedError
报错信息: [Error] NotImplementedError raise NotImplementedError 问题描述 给unet++加上注意力机制,写attention_block代码的时 ...
- 【Python】django报错:TypeError: __init__() missing 1 required positional argument: 'on_delete'解决办法
错误代码: from __future__ import unicode_literals from django.db import models from django.utils.encodin ...
- 【Error】Less-loader 版本过高,TypeError: this.getOptions is not a function
TypeError: this.getOptions is not a function 原因分析 解决方案 原因分析 由于 less-loader 的版本过高,会报出 TypeError: this ...
- 【error】深度优先搜索TypeError: unhashable type: ‘list‘
查网上的原因是: python字典的key不支持list类型和dict类型,需要转换 但是我没有使用到key,后来仔细查看发现是增加了一个装饰器导致的,@functions.lru.cache 把装饰 ...
- 【ERROR】java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11.XToolkit
tomcat 出现java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11.XToolkit运行时异常,主要原因是图 ...
- 【解决】控制台报错Uncaught TypeError: Object(...) is not a function at eval (vue-router.esm-bundler.js
打开http://localhost:8080/,控制台报错 Uncaught TypeError: Object(...) is not a functionat eval (vue-router. ...
- 【ERROR】angular版本问题compiler_cli_1.readConfiguration is not a function
问题一.angular版本问题 cielo@cielo-ThinkPad-E550:~/cprogrames/test-bna/angular-test$ ng serve The serve com ...
最新文章
- Mybatis缓存机制理解及配置
- 做生意的六大秘诀和十要诀
- MapReduce实战--倒排索引
- python中的函数def和函数的参数
- 从PM到GAN——LSTM之父Schmidhuber横跨22年的怨念(文字版)
- 关于这道填空题,你会如何回答?(附带学习链接)
- OpenShift 4 - 下载OpenShift项目中的ImageStream
- python编写程序、计算1+3+5+7......+99-在python中实现求输出1-3+5-7+9-......101的和
- Pythonamp;R爬取分析赶集网北京二手房数据(附详细代码)
- 申请ios证书并发布uniapp软件
- oracle18c18.3,oracle 18c客户端提供下载了
- c语言编程多项式,多项式c语言编程.docx
- android 自定义indicator,Android实现自定义Indicator的导航控件
- JavaSE 多线程
- python在线办公自动化oa系统django408
- 远程调用中间件(RPC)
- STM32L0系列之【LPTIM定时器】
- 国际标准刊号,国内统一刊号,刊号的标准格式 分类
- 一个基于 Spring Boot 的开源社区
- 打开UG10 C语言错误,UG打开prt文件UTF8归档报错:部件已以UTF8模式归档,但NX运行
热门文章
- WMV网页播放器代码详解
- Java异常-受查与非受查
- 外卖订餐网站系统源码,微信订餐网站系统定制开发建设
- java用UDP作简易聊天室
- 中小学理科试验仿真软件
- node.js mysql h5_【京东个人中心】——Nodejs/Ajax/HTML5/Mysql爬坑之功能与数据分析
- springboot+vue全栈开发
- SciTE编译AutoHotkey(v2)代码的方法
- Scala 的数据结构
- modbus tcp怎么设计通讯状态是否正常_安科瑞 张奇峰杭后旗医院消防设备电源监控系统 的设计与应用...