![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
深度学习踩坑日记
记录自己在做深度学习时遇到的各种问题以及决绝方法,使用的是Pycharm编译器,tensorflow框架
小白打怪升级进阶记
这个作者很懒,什么都没留下…
展开
-
【问题解决】module ‘tensorflow‘ has no attribute ‘placeholder‘
使用函数tf.placeholder(tf.float32, [None, n_input])时报错如下AttributeError: module 'tensorflow' has no attribute 'placeholder'问题是我使用的是tensorflow2.0以上版本,代码中的函数是1.0的版本解决方案,在导入tensorflow包时使用以下方式导入import tensorflow.compat.v1 as tftf.disable_v2_behavior()这可以原创 2021-11-19 16:14:26 · 29735 阅读 · 8 评论 -
【问题解决】AttributeError: module ‘skimage.data‘ has no attribute ‘imread‘
在使用函数skimage.data.imread时,发现如下报错错误描述:尝试调用data模块中的imread函数,但是这个模块没有这个函数。解决方案:使用如下函数skimage.io.imread(path)同时在导包时候要添加上 io,如下from skimage import color, data, transform, io问题解决!...原创 2021-11-19 14:58:12 · 6912 阅读 · 0 评论