-
Notifications
You must be signed in to change notification settings - Fork 380
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
python2.7 IndexError: list index out of range #14
Comments
Their code is intended to be run on Python 3.4 or higher I think. If you want to run it on 2.6/7, you have to change some stuff - see #3 |
python3.5 tensorflow-1.0.1 File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/tensorflow/python/ops/array_ops.py", line 1203, in split |
Suggestion by @codypilot works for me (using Python 3.6.1):
|
I have the same error. |
@shenfanyi I've had success with Python 2.7, 3.4.3 and 3.6.1 + TensorFlow 1.0.1. |
@codypilot How did you have success with Python 2.7 and 3.6.1? |
This project only supports python 3 and TF 1.0+ as of 83d940d |
Traceback (most recent call last):
File "demo.py", line 4, in
model = Model()
File "/Users/zhaoyingjun/Downloads/generating-reviews-discovering-sentiment-master/encoder.py", line 143, in init
cells, states, logits = model(X, S, M, reuse=False)
File "/Users/zhaoyingjun/Downloads/generating-reviews-discovering-sentiment-master/encoder.py", line 93, in model
inputs = [tf.squeeze(v, [1]) for v in tf.split(1, nsteps, words)]
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tensorflow/python/ops/array_ops.py", line 1203, in split
num = size_splits_shape.dims[0]
IndexError: list index out of range
who can tell me why please?
The text was updated successfully, but these errors were encountered: