Skip to content

InvalidArgumentError #8

Description

@Chuan1997

Hello, I came across an error, when running the code:
_Traceback (most recent call last):

File "E:\Anaconda\envs\py36\lib\site-packages\tensorflow\python\client\session.py", line 1356, in _do_call
return fn(*args)

File "E:\Anaconda\envs\py36\lib\site-packages\tensorflow\python\client\session.py", line 1341, in _run_fn
options, feed_dict, fetch_list, target_list, run_metadata)

File "E:\Anaconda\envs\py36\lib\site-packages\tensorflow\python\client\session.py", line 1429, in _call_tf_sessionrun
run_metadata)

InvalidArgumentError: indices[252,12] = 1073 is not in [0, 944)
[[{{node embedding_lookup_2}}]]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "D:\Study\reproduction\LGRec\code\LGRec.py", line 518, in
_, model_loss = sess.run([train_step, train_model.loss], feed_dict)

File "E:\Anaconda\envs\py36\lib\site-packages\tensorflow\python\client\session.py", line 950, in run
run_metadata_ptr)

File "E:\Anaconda\envs\py36\lib\site-packages\tensorflow\python\client\session.py", line 1173, in _run
feed_dict_tensor, options, run_metadata)

File "E:\Anaconda\envs\py36\lib\site-packages\tensorflow\python\client\session.py", line 1350, in _do_run
run_metadata)

File "E:\Anaconda\envs\py36\lib\site-packages\tensorflow\python\client\session.py", line 1370, in _do_call
raise type(e)(node_def, op, message)

InvalidArgumentError: indices[252,12] = 1073 is not in [0, 944)
[[node embedding_lookup_2 (defined at D:\Study\reproduction\LGRec\code\LGRec.py:224) ]]

Errors may have originated from an input operation.
Input Source operations connected to node embedding_lookup_2:
Placeholder_2 (defined at D:\Study\reproduction\LGRec\code\LGRec.py:178)
user_embedding/read (defined at D:\Study\reproduction\LGRec\code\LGRec.py:183)_

Could you please provide some advices on solving the problem?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions