使用TensorFlow1.0及以上版本的问题
2018-01-26 13:16
471 查看
转自 http://blog.csdn.net/caicai_zju/article/details/70477929
BUG 1. AttributeError: ‘module’ object has no attribute ‘mul’
2
BUG 2. AttributeError: ‘module’ object has no attribute ‘sub’
解决方案:用tf.subtract替代tf.sub
2
BUG 3. AttributeError: ‘module’ object has no attribute ‘neg’
2
BUG 4. ValueError: Only call
arguments (labels=…, logits=…, …)
BUG 1. AttributeError: ‘module’ object has no attribute ‘mul’
# 解决方案: 用tf.multiply替代tf.mul1
2
BUG 2. AttributeError: ‘module’ object has no attribute ‘sub’
解决方案:用tf.subtract替代tf.sub
# 解决方案: 用tf.subtract替代tf.sub1
2
BUG 3. AttributeError: ‘module’ object has no attribute ‘neg’
# 解决方案: 用tf.negative替代tf.neg1
2
BUG 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_logits_))
相关文章推荐
- lucene版本升级到4.6.0以上之后使用mmseg4j分词器遇到的问题
- 修正BlogEngine.Net中的使用全中文为标题的链接问题(在1.1以上版本此问题已被修复)
- Mongo 3.X以上版本使用Robomongo无法查看Collections内容的问题解决
- 开发android4.0以上版本网络编程模块的问题 使用URLConnection 怎么连接不上 获取Json字符串
- TensorFlow升级到1.0版本的问题
- (自己使用Hibernate出现的版本问题)Eclipse上使用Hibernate5.0及以上版本编写!
- Jquery 1.9.0 以上版本扩展$.browser无法使用的问题
- 使用ButterKnife8以上版本,控件报空指针的问题
- webview4.4以上版本使用loadurl加载过长js文件失效问题
- Chrome58以上版本Goagent访问google显示不安全使用问题解决
- 使用DotNetNuke(DNN) Startkit 4.7(及以上版本)安装无法完成问题的解决方法
- 使用旧版本tensorflow出现了negative等报错的问题,AttributeError: 'module' object has no attribute 'xxx'"
- TensorFlow升级到1.0版本的问题
- TensorFlow升级到1.0版本的问题
- 解决jdk1.4生成二维码问题,因为现下生成二维码的jar包,版本最低支持jdk1.5以上的版本,老的项目中想使用二维码,直接使用jar包无法使用
- OpenCV 2.2.0及以上版本CvvImage的使用问题
- jquery1.3版本以上使用数组对struts2的兼容性问题
- Tensorflow初次使用遇到scipy版本问题
- centos下,将python升级3.0+以上版本后,yum、update等无法使用问题
- lucene版本升级到4.6.0以上之后使用ik分词器遇到的问题