dbn_tf icon indicating copy to clipboard operation
dbn_tf copied to clipboard

不知道为什么出现这个错误

Open 353xiong opened this issue 5 years ago • 0 comments

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

353xiong avatar Oct 13 '18 13:10 353xiong