首页 > 其他 > 详细

tensorflow 训练cifar10报错

时间:2017-07-26 16:58:57      阅读:1130      评论:0      收藏:0      [点我收藏+]

1、AttributeError: ‘module‘ object has noattribute ‘random_crop‘

解决方案:

将distorted_image= tf.image.random_crop(reshaped_image, [height, width])改为:

distorted_image = tf.random_crop(reshaped_image,[height, width,3])

2、AttributeError: ‘module’ object has no attribute’per_image_whitening’
‘per_image_whitening 改为:’per_image_standardization

3、‘module‘ object has no attribute ‘image_summary‘ ---->Please switch to tf.summary.image

4、AttributeError: ‘module‘ object has no attribute ‘histogram_summary‘

AttributeError: ‘module‘ object has no attribute ‘histogram_summary‘

>> histogram_summary 改为:tf.summary.histogram
5、AttributeError: ‘module‘ object has no attribute ‘scalar_summary‘
AttributeError: ‘module‘ object has no attribute ‘scalar_summary‘

>> tf.scalar_summary 改为:tf.summary.scalar

6、AttributeError: ‘module‘ object has no attribute ‘mul‘

 

According to the tensorflow 1.0.0 release notes,

 

tf.mul, tf.sub and tf.neg are deprecated in favor of tf.multiply, tf.subtract and tf.negative.

 

7、raise ValueError("Shapes %s and %s are incompatible" % (self, other))
ValueError: Shapes (2, 128, 1) and () are incompatible
 
 
 

 

tensorflow 训练cifar10报错

原文:http://www.cnblogs.com/YouXiangLiThon/p/7240108.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!