tensorflow / skflow

Simplified interface for TensorFlow (mimicking Scikit Learn) for Deep Learning
Apache License 2.0
3.18k stars 439 forks source link

NotImplementedError: Negative indices are currently unsupported #121

Closed nyaong7 closed 8 years ago

nyaong7 commented 8 years ago

Dear,

I am testing with neural_translation_word.py in python3. I downloaded the dataset as mentioned in the script and tried to run it. It gives me the following log


1400000 lines read from data/train.data Fitting dictionary for French... Transforming... Total words, en: 41521, fr: 53858 Traceback (most recent call last): File "neural_translation_word.py", line 154, in translator.fit(X_train, y_train, logdir=PATH) File "/home/.../.local/lib/python3.4/site-packages/skflow-0.1.0-py3.4.egg/skflow/estimators/base.py", line 217, in fit File "/home/.../.local/lib/python3.4/site-packages/skflow-0.1.0-py3.4.egg/skflow/estimators/base.py", line 148, in _setup_training File "neural_translation_word.py", line 139, in translate_model encoder_cell, decoder_cell=decoder_cell) File "/home/.../.local/lib/python3.4/site-packages/skflow-0.1.0-py3.4.egg/skflow/ops/seq2seq_ops.py", line 133, in rnn_seq2seq File "/usr/local/lib/python3.4/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 looks like array_ops.py gives 'NotImplementedError'. Is there any way I can fix this problem?

Thank you very much!!

terrytangyuan commented 8 years ago

@nyaong7 Should be fixed here #123