![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Tensorflow
kaichu2
一只不断前行的小白~
展开
-
AttributeError: module ‘tensorflow.keras.backend‘ has no attribute ‘set_session‘
AttributeError: module 'tensorflow.keras.backend' has no attribute 'set_session'原创 2022-03-01 14:52:32 · 1967 阅读 · 3 评论 -
调用keras.Utils.print_summary()时遇到问题:ImportError: cannot import name ‘get_config‘
在使用keras官方提供的keras.utils.print_summary()时遇到这个问题:from keras.utils import print_summary解决方法:1、重新安装新版本tensorflow(个人觉得大可不必!如果其他方法都不行再用这个)2、修改调用语句,直接调用tensorflow中的keras试试?from tensorflow.keras.utils import print_summary还是不行!!!3、通过查看错误代码提示,我觉..原创 2021-09-27 12:48:17 · 979 阅读 · 0 评论 -
Could not load dynamic library ‘cudart64_100.dll‘; dlerror: cudart64_100.dll not found
主要是cuda版本不一致导致的这个问题,最佳的建议就是重新安装指定版本,但是太麻烦了,我安装的是cuda v11.1版本于是在C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA中搜索cudart64可以发现只有cudart64_110和cudart_101两个版本可以使用,找不到cudart64_100,个人感觉cudart64_100和这个cudart64_101版本差别不是特别大,尝试修改一下名字;修改名字后,再次运行没问题!这里防止出问原创 2021-08-30 11:32:08 · 1067 阅读 · 0 评论 -
No module named ‘tensorflow.examples.tutorials‘ 解决版本tensorflow2.3.1
运行代码:from tensorflow.examples.tutorials.mnist import input_data出现下面的情况!No module named 'tensorflow.examples.tutorials' 解决办法 tensorflow2.3.1解决办法:将下载的tutorials放到examples文件夹下重新运行就没问题了!tutorials下载地址:tutorials!!!!!!!!!...原创 2020-12-08 20:08:44 · 293 阅读 · 0 评论 -
tensorflow新版本异常
下面问题都是tensorflow2.0以后出现的,但是不是错误!!!解决办法如下:问题一:AttributeError: module 'tensorflow' has no attribute 'get_default_graph'使用tf.compat.v1.get_default_graph()替换tf.get_default_graph()问题二:AttributeError: module 'tensorflow' has no attribute 'Session'tf.co原创 2020-07-12 21:47:02 · 225 阅读 · 0 评论 -
windows下安装Tensorflow2.0.0正式版
如何windows下安装Tensorflow2.0.0正式版?1、首先安装numpy(安装过就算了)推荐国内安装源!亲测成功!!!pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple2、使用清华源安装Tensorflow GPU版本pip install -U tensorflow-gpu -i http...原创 2019-12-06 15:28:52 · 858 阅读 · 1 评论 -
Tensorflow实现mnist手写数字识别
一、Tensorflow实现mnist手写数字识别代码里会有部分注释,仅供个人后续复习!ps:我也是小白,有兴趣大家可以一起交流!import tensorflow as tffrom tensorflow.examples.tutorials.mnist import input_dataimport time""" mnist数据集有60000张图片,10000张图片作...原创 2019-05-27 21:28:33 · 635 阅读 · 0 评论 -
一文彻底搞懂BP算法:原理推导+数据演示+项目实战
一文彻底搞懂BP算法:原理推导+数据演示+项目实战转载 2019-05-27 21:37:31 · 1334 阅读 · 0 评论 -
深度学习之激活函数
今天主要是来总结一下深度学习的激活函数:1、什么是激活函数呢?2、激活函数的作用是什么呢?3、常用的激活函数有哪些?4、如何选择激活函数?主要围绕上面几个问题展开讲述!线性模型在处理非线性问题时往往无从下手,这时引入激活函数来解决线性不可分问题!激活函数往往存在于输入层和输出层之间,目的是给神经网络一些非线性因数,使得神经网络能够解决更加复杂的问题,同时增强了神经网络的表达...原创 2019-05-29 16:39:41 · 1089 阅读 · 0 评论