Tensorflow AttributeError: 'DataSet' object has no attribute 'image'
<p>I am trying to use Tensorflow for the first time</p>

<p>Here is my code that I got from a tutorial:</p>

<pre><code>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)
</code></pre>

<p>I get this error at the line specified above <code>AttributeError: 'DataSet' object has no attribute 'image'</code></p>

<p>How do I fix this?</p>