TensorFlow升级到1.0版本的问题
2017-08-31 20:31
459 查看
BUG 1. AttributeError: ‘module’ object has no attribute ‘mul’
# 解决方案: 用tf.multiply替代tf.mul1212BUG 2. AttributeError: ‘module’ object has no attribute ‘sub’ 解决方案:用tf.subtract替代tf.sub
# 解决方案: 用tf.subtract替代tf.sub1212BUG 3. AttributeError: ‘module’ object has no attribute ‘neg’
# 解决方案: 用tf.negative替代tf.neg1212BUG 4. ValueError: Only call
sigmoid_cross_entropy_with_logitswith named arguments (labels=…, logits=…, …)
# 解决方案: 将 tf.nn.sigmoid_cross_entropy_with_logits(self.D2_logits_, tf.ones_like(self.D2_) * 0.9)) 修改为
tf.nn.sigmoid_cross_entropy_with_logits(labels=tf.ones_like(self.D2_) * 0.9, logits=self.D2_logit
BUG 4. ValueError: Only call sigmoid_cross_entropy_with_logits
with named arguments (labels=…, logits=…, …)BUG5、AttributeError: 'module' object has no attribute 'global_variables_initializer'
#解决方案:
将
init = tf.global_variables_initializer()
替换
init = tf.initialize_all_variables()
相关文章推荐
- TensorFlow升级到1.0版本的问题
- TensorFlow升级到1.0版本的问题
- 有关程序版本升级的问题--升级到“妻子1.0”
- 利用tensorflow的upgrade.py将之前的代码自动升级为1.0版本的代码
- tensorflow代码旧版本0.x自动更新升级到1.0
- Cocoapods大版本升级到1.0之后的问题
- 使用TensorFlow1.0及以上版本的问题
- Tensorflow升级1.0版本
- 解决Mac node版本升级失败的问题
- 升级Xcode7.2之后 VVDocumenter-插件不能使用(对其他版本升级后存在的问题也适用)
- 低版本升级HANA到SPS8及以上之前要处理的问题
- ASP.NET1.0升级ASP.NET2.0问题总结
- ORACLE11.2.0.4 版本升级ORA-39700: database must be opened with UPGRADE option问题解决记录
- asp.net 搭配 mysql 运行 的时候 @ 和 ? 的问题,Connector Net 最新版本,1.0版本和6.5.4版本的区别,为什么发布的时候没有包含MySql.Data.dll?
- 升级Android支持库版本遇到的两个问题
- 2016 cocoapods的安装和使用以及版本升级遇到的问题
- qt4.8到qt5.2windows版本的升级遇到的实际问题.
- 关于阿里云centos 2.6下手机表情输入后无法保存到mysql数据库的问题调研及mysql版本从5.1升级到5.7的全过程纪要
- Tensorflow由于版本问题出现的几种错误及解决办法
- TensorFlow学习笔记--1.0 版本的一个小坑记录