YerevaNN / R-NET-in-Keras

Open R-NET (hy` առնետ 🐁) implementation and detailed analysis: https://git.io/vd8dx
http://yerevann.github.io/2017/08/25/challenges-of-reproducing-r-net-neural-network-using-keras/
MIT License
179 stars 88 forks source link

ValueError: need more than 0 values to unpack #24

Open jayajackson opened 6 years ago

jayajackson commented 6 years ago

Hi, I got the above mentioned error,while I run the training process

Thanking You

Traceback (most recent call last): File "train.py", line 39, in char_level_embeddings=args.char_level_embeddings) File "/home/lab/Desktop/project/R-NET-in-Keras-master/model.py", line 106, in init WQ_u, WP_v, WP_u, v File "/usr/local/lib/python2.7/dist-packages/keras/layers/recurrent.py", line 262, in call return super(Recurrent, self).call(inputs, kwargs) File "/usr/local/lib/python2.7/dist-packages/keras/engine/topology.py", line 596, in call output = self.call(inputs, kwargs) File "/home/lab/Desktop/project/R-NET-in-Keras-master/WrappedGRU.py", line 49, in call return super(WrappedGRU, self).call(inputs, mask, training) File "/usr/local/lib/python2.7/dist-packages/keras/layers/recurrent.py", line 341, in call input_length=input_shape[1]) File "/usr/local/lib/python2.7/dist-packages/keras/backend/tensorflowbackend.py", line 2457, in rnn outputs, = step_function(inputs[0], initial_states + constants) File "/home/lab/Desktop/project/R-NET-in-Keras-master/QuestionAttnGRU.py", line 37, in step uQ_mask, = states[9:10] ValueError: need more than 0 values to unpack

mahnerak commented 6 years ago

@jayajackson Please make sure you are running Keras version 2.0.6

jayajackson commented 6 years ago

Dear sir,

        I have changed the keras version.But showing the same error.

Thanking You

On Sun, Dec 31, 2017 at 9:09 AM, Jaya John jaya.mphilcs5@iiitmk.ac.in wrote:

Dear sir, I have changed keras version to 2.0.6.but... Still showing the same error.

Thanking You

On Sun, Dec 31, 2017 at 9:08 AM, Jaya John jaya.mphilcs5@iiitmk.ac.in wrote:

Dear sir, I changed keras version to 2.0.6.but... Still showing the same error.

Thanking You

On Sun, Dec 31, 2017 at 2:54 AM, Karen Hambardzumyan < notifications@github.com> wrote:

@jayajackson https://github.com/jayajackson Please make sure you are running Keras version 2.0.6

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/YerevaNN/R-NET-in-Keras/issues/24#issuecomment-354569127, or mute the thread https://github.com/notifications/unsubscribe-auth/Ae1Ra0zwqrrNQXkRm_IvlH0GUOhRKOlZks5tFqn4gaJpZM4RPstY .