![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
错误集锦
秦耘
这个作者很懒,什么都没留下…
展开
-
报错:RuntimeError: cuDNN error: CUDNN_STATUS_NOT_INITIALIZED
1、惨痛教训:一般显存溢出报out of memory之类,修改了代码中batch-size大小(忘记自己已经配置过默认参数)未解决。所以便认为是cuda配置问题,多方检查确认cuda、cudnn配置无误,也经历过更换cudnn,都无果。最终想起配置过的默认参数未改,改后正常。所以在查那么久,原因五花八门,都解决不了问题,此报错极可能根本与版本、配置无关,仅仅算力不足而已。 ![在这里插入图片描述](https://img-blog.csdnimg.cn/20200912160034881.png?x-os原创 2020-09-12 16:15:15 · 17221 阅读 · 12 评论 -
AttributeError: module ‘tensorflow‘ has no attribute ‘io‘
报错: if not tf.io.gfile.exists(logdir): return getattr(load_once(self), attr_name) … AttributeError: module ‘tensorflow’ has no attribute ‘io’ 解决: 1、有介绍说tensorboard与tensorflow-tensorboard有冲突,删除 tensorboard-plugin-wit等与tensorboard相关。操作后未解决。 2、由于是pytorch直接使用原创 2020-09-12 11:41:46 · 5400 阅读 · 1 评论 -
pytorch yolo3 代码运行时报错
pytorch yolo3 代码运行时报错 torch._C._cuda_init() RuntimeError: CUDA error: unknown error 解决: 在import后边加上下边一句:torch.cuda.current_device() 运行通过 import torch torch.cuda.current_device() ...原创 2020-02-04 11:52:59 · 661 阅读 · 1 评论 -
python文件名与定义函数名冲突,报"AttributeError: 'function' object has no attribute 'localtime'"
程序中写了一个获取当前时间的函数: def time(): now = time.localtime() t = time.strftime("%Y-%m-%d %H:%M:%S", now) return t … t.time()调用这个函数的时候,报错"AttributeError: ‘function’ object has no attribute ‘localtime’" 经调试发现,如...原创 2019-05-19 14:54:53 · 3509 阅读 · 0 评论 -
安装scrapy 报错“Failed building wheel for Twisted”,“error: Microsoft Visual C++ 14.0 is required.”
报错如上图所示,解决办法如下: 去http://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted,下载对应版本,这里有很多版本,cp后面跟的数字代表了你的python版本,如cp36代表的是python3.6版本,最后面的32和64代表的就是你的计算机系统的操作位数,找到自己对应的那个,点击链接就可以将这个包下载下来,我下载的是Twisted-19.2.1...原创 2019-08-04 18:40:43 · 248 阅读 · 0 评论