Traceback (most recent call last):
File "/home/xiong/Desktop/dbn_tf/test.py", line 21, in
mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)
File "/home/xiong/Desktop/dbn_tf/input_data.py", line 154, in read_data_sets
train_images = extract_images(local_file)
File "/home/xiong/Desktop/dbn_tf/input_data.py", line 43, in extract_images
buf = bytestream.read(rows * cols * num_images)
File "/usr/lib/python2.7/gzip.py", line 275, in read
chunk = self.extrabuf[offset: offset + size]
TypeError: only integer scalar arrays can be converted to a scalar index