TensorFlow不同版本引起的错误
来源:互联网 发布:唐山餐饮软件代理 编辑:程序博客网 时间:2024/06/05 20:16
最近有开始搞点Tensorflow,但是突然发现以前有点API没用了,特此转载,用来记录,方便回忆。
转自:http://blog.csdn.net/s_sunnyy/article/details/70999462
前4个是 V0.11 的API 用在 V1.0 的错误
1. AttributeError: 'module' object has no attribute 'merge_all_summaries'
>> tf.merge_all_summaries() 改为:summary_op = tf.summary.merge_all()
2. AttributeError: 'module' object has no attribute 'SummaryWriter'
>> tf.train.SummaryWriter 改为:tf.summary.FileWriter
3. AttributeError: 'module' object has no attribute 'scalar_summary'
>> tf.scalar_summary 改为:tf.summary.scalar
4. AttributeError: 'module' object has no attribute 'histogram_summary'
>> histogram_summary 改为:tf.summary.histogram
下边这个是 V1.0 的API 用在 V0.11 的错误
File "dis-alexnet_benchmark.py", line 110, in alexnet_v2
biases_initializer=tf.zeros_initializer(),
TypeError: zeros_initializer() takes at least 1 argument (0 given)
>> 将 biases_initializer=tf.zeros_initializer() 改为:biases_initializer=tf.zeros_initializer
阅读全文
0 0
- TensorFlow不同版本引起的错误
- TensorFlow不同版本引起的错误
- TensorFlow不同版本引起的错误
- TensorFlow不同版本引起的错误
- jdk版本不同引起的问题分析
- 版本不同引起的android.os.NetworkOnMainThreadException
- IMP 数据库版本不对引起的错误
- JDK版本不对引起的错误
- jdk版本问题引起的错误
- 由于sp3版本不同引起的sql server timeout!!
- 一个由于bouncycastle版本不同引起的问题
- 由Lucene版本不同引起的一些问题
- TensorFlow版本带来的concat错误
- tensorflow各版本间的区别错误
- Android编译CPU架构体系不同引起的错误解决方法
- Windows版本宏的定义引起的编译错误
- android编译时Notification版本引起的错误
- TIdUDPServer使用时版本不同的错误
- solr-4 search
- PXE KICKSTART 全自动安装系统
- tensorflow simple conv lenet
- 远程连接MYSQL提示Host is not allowed to connect to this MySQL server
- svn执行svn update操作无法更新到新文件(eclipse的build automatically)
- TensorFlow不同版本引起的错误
- 在 linux 学习 live555的笔记1
- opencv+色偏检测
- 基于Predix开发app的设计思路2
- Lua和C++是通过一个虚拟栈来交互的。
- VMware中Ubuntu编译和升级内核
- classpath路径
- mysql 日志爆满,删除日志文件,定时清理日志
- javaMD5加密工具类