1
私はここで初めてTensorflowはAttributeError:「データセット」オブジェクトが何の属性「イメージ」を持っていない
をTensorflowを使用しようとしていますが、私はチュートリアルからもらった私のコードです:
import numpy as np
import matplotlib.pyplot as plt
import tensorflow as tf
learn = tf.contrib.learn
tf.logging.set_verbosity(tf.logging.ERROR)
mnist = learn.datasets.load_dataset('mnist')
data = mnist.train.image //THIS IS WHERE THE ERROR OCCURS
labels = np.asarray(mnist.train.labels, dtype=np.int32)
test_data = mnist.test.images
test_labels = np.asarray(mnist.test.labels, dtype = np.int32)
私が手上記の行のこのエラーAttributeError: 'DataSet' object has no attribute 'image'
これを修正するにはどうすればよいですか?
...私はそれを逃したとは思わない –