python数据读取失败无法启动应用_tensorflow初学者教程-读取数据集失败
我正試圖在Linux上運行tutorial。我安裝了gcc、cython、numpy、six。
我可以導入數據,但解包時似乎有問題。
有人能幫忙嗎?Python 2.7.3 (default, Jun 22 2015, 19:43:34)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import g3doc.tutorials.mnist.input_data as input_data
>>> mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)
Successfully downloaded train-images-idx3-ubyte.gz 9912422 bytes.
Extracting MNIST_data/train-images-idx3-ubyte.gz
Traceback (most recent call last):
File "", line 1, in
File "g3doc/tutorials/mnist/input_data.py", line 175, in read_data_sets
train_images = extract_images(local_file)
File "g3doc/tutorials/mnist/input_data.py", line 60, in extract_images
buf = bytestream.read(rows * cols * num_images)
File "/usr/lib/python2.7/gzip.py", line 263, in read
chunk = self.extrabuf[offset: offset + size]
TypeError: only integer scalar arrays can be converted to a scalar index
>>> mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)
Extracting MNIST_data/train-images-idx3-ubyte.gz
Traceback (most recent call last):
File "", line 1, in
File "g3doc/tutorials/mnist/input_data.py", line 175, in read_data_sets
train_images = extract_images(local_file)
File "g3doc/tutorials/mnist/input_data.py", line 60, in extract_images
buf = bytestream.read(rows * cols * num_images)
File "/usr/lib/python2.7/gzip.py", line 263, in read
chunk = self.extrabuf\[offset: offset + size]
TypeError: only integer scalar arrays can be converted to a scalar index
總結
以上是生活随笔為你收集整理的python数据读取失败无法启动应用_tensorflow初学者教程-读取数据集失败的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 个人所得税退税在哪个银行
- 下一篇: 4.9利率一万有多少利息