-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Description
I tested the code from /matex/src/deeplearning/tensorflow/examples/glibc_after_2.19/MNIST/tf_lenet3.py with command python tf_lenet3.py and I got an error:
Traceback (most recent call last):
File "tf_lenet3.py", line 17, in <module>
mnist = tf.DataSet("MNIST", normalize=255.0)
AttributeError: module 'tensorflow' has no attribute 'DataSet'
Then, I modified the code. I added from tensorflow.examples.tutorials.mnist import input_data and mnist = input_data.read_data_sets('MNIST_data', one_hot=True), removed mnist = tf.DataSet("MNIST", normalize=255.0) and I got the following error:
Traceback (most recent call last):
File "tf_lenet3.py", line 70, in <module>
for train_batch in range(int(len(mnist.training_data)/args.train_batch)):
AttributeError: 'Datasets' object has no attribute 'training_data'
What should I do to solve the problem?
@jeffdaily @vamatya @abhinavvishnu @charlesmsiegel @cabe1980 Thanks for your help!
Metadata
Metadata
Assignees
Labels
No labels