1.报错 AttributeError: ‘module’ object has no attribute ‘mul’
solution: 使用用tf.multiply替代tf.mul
2.报错 AttributeError: No module named ‘tensorflow.models’
在使用tensorflow提供的cifar10数据 数据集读取和下载函数时 报如上错误,还未找到解决方案
import tensorflow.models.image.cifar10.cifar10 as cifar10
cifar10.maybe_download_and_extract()
images, labels = cifar10.distorted_inputs()
print images
print labels