-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: only integer scalar arrays can be converted to a scalar index #4
Comments
Just created a Pull request to fix this bug: #5 |
This worked out for me, instead of this line, i replaced it with these lines
|
Same issue . |
Thank you for fix but now i am getting this error
|
This will fix it. Add [0] to the end of this function in input_data.py |
@SheldonGeek Thank you. Fixed this problem. Should make a PR. |
@rakis10
These Attributes are deprecated changed board.py: eventually helpful: tf API doc |
sn.jointplot(x=x,y=y,kind='hex')
|
Can anyone help? |
I am currently using python version 3.5.2
Z:\downloads\tensorflow_demo-master\tensorflow_demo-master>py
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
I get the following error when i run board.py and i have all the dependencies required to run board.py
Z:\downloads\tensorflow_demo-master\tensorflow_demo-master>py board.py
Extracting Z:/downloads/MNIST dataset\train-images-idx3-ubyte.gz
Traceback (most recent call last):
File "board.py", line 3, in
mnist = input_data.read_data_sets(r'Z:/downloads/MNIST dataset', one_hot=True)
File "Z:\downloads\tensorflow_demo-master\tensorflow_demo-master\input_data.py", line 150, in read_data_sets
train_images = extract_images(local_file)
File "Z:\downloads\tensorflow_demo-master\tensorflow_demo-master\input_data.py", line 40, in extract_images
buf = bytestream.read(rows * cols * num_images)
File "C:\Users\Admin\AppData\Local\Programs\Python\Python35\lib\gzip.py", line 274, in read
return self._buffer.read(size)
TypeError: only integer scalar arrays can be converted to a scalar index
The text was updated successfully, but these errors were encountered: