まずはテンソルフローを開始しました。私は初心者のためのチュートリアルを読んでいました。ウィンドウでexamples.tutorials.mnistという名前のモジュールがありません
ので、私は、Oracle VM VirtualBoxのを使用して、私はhttps://www.tensorflow.org/versions/r0.11/get_started/os_setup.html#virtualenv-installation
を通じてピップvirtualenvのでインストールされ、私はエラーなしで「import tensorflow by tf
」をコンパイルすることにより、うまく機能してtensorflow確認。チュートリアル中
from tensorflow.examples.tutorials.mnist import input_data
" で、チュートリアルのコード
examples.tutorials.mnistという名前のモジュールに
をエラーが発生しました。
このエラーが発生した理由がわかりません...そのMNISTデータをダウンロードするコードではありませんか?
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)
import tensorflow as tf
x = tf.placeholder(tf.float32, [None, 784])
W = tf.Variable(tf.zeros([784,10])) # weight
b = tf.Variable(tf.zeros([10])) # bias
y = tf.nn.softmax(tf.matmul(x, W) + b)