librahu / LGRec

Source code for CIKM2018 paper "Local and Global Information Fusion for Top-N Recommendation in Heterogeneous Information Network"
14 stars 15 forks source link

InvalidArgumentError #9

Open mujinmujin opened 2 years ago

mujinmujin commented 2 years ago

你号,运行代码时,我出现了如下错误: _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) userembedding/read (defined at D:\Study\reproduction\LGRec\code\LGRec.py:183)

请问你知道如何解决吗?