Skip to content
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

Got NotImplementedError: Negative indices are currently unsupported #2

Open
yeze322 opened this issue Mar 6, 2016 · 2 comments
Open

Comments

@yeze322
Copy link

yeze322 commented Mar 6, 2016

write-rnn-tensorflow/model.py", line 50, in __init__
    self.final_state = states[-1]
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/array_ops.py", line 124, in _SliceHelper
    raise NotImplementedError("Negative indices are currently unsupported")
NotImplementedError: Negative indices are currently unsupported

It seems the tensorflow lib has been changed !

@rajshah4
Copy link
Contributor

rajshah4 commented Mar 7, 2016

whew, glad I am not alone on this. I also had this error today with tensor flow 0.7.1
I found this message that also makes it looks like things have changed:

tensorflow/skflow#112
Thanks

@hardmaru
Copy link
Owner

hardmaru commented Mar 7, 2016

Thanks for the spot, the API must have changed (I made this demo in November 2015 on the very first public release of TensorFlow 0.50).

states[-1] just corresponds to the very last state of the LSTM loop, have to look at what has changed in the API and reflect that back into that line.

If you are able to fix it and get it working with v 0.7+ please submit pull request and I'll merge it in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants