运行TensorFlow官方CNN示例错误:ImportError:无法导入名称' cifar10'

时间:2017-02-24 02:19:11

标签: python machine-learning tensorflow

运行TensorFlow official CNN example时出错。

$ python cifar10_train.py
Traceback (most recent call last):
  File "cifar10_train.py", line 44, in <module>
    from tensorflow.models.image.cifar10 import cifar10
ImportError: cannot import name 'cifar10'
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\dso_loader.cc:135] successfully opened CUDA library cublas64_80.dll locally
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\dso_loader.cc:135] successfully opened CUDA library cudnn64_5.dll locally
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\dso_loader.cc:135] successfully opened CUDA library cufft64_80.dll locally
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\dso_loader.cc:135] successfully opened CUDA library nvcuda.dll locally
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\dso_loader.cc:135] successfully opened CUDA library curand64_80.dll locally

我从tensorflow下载Github个zip文件,并在python cifar10_train.py中运行tensorflow/tensorflow/models/image/cifar10

1 个答案:

答案 0 :(得分:0)

您可能已下载不稳定的主版本。

我建议您按照official documentation中的说明重新安装TensorFlow,然后重试。