changyaoxing / DSIN

Apache License 2.0
0 stars 0 forks source link

InvalidArgumentError (see above for traceback): indices[0,3] = 8461 is not in [0, 5973) #1

Open dontclosemountain999 opened 1 year ago

dontclosemountain999 commented 1 year ago

When I run train_dsin.py, it occurs:

traceback (most recent call last): File "E:\Anaconda\envs\DSIN\lib\site-packages\tensorflow\python\client\session.py", line 1323, in _do_call return fn(*args) File "E:\Anaconda\envs\DSIN\lib\site-packages\tensorflow\python\client\session.py", line 1302, in _run_fn status, run_metadata) File "E:\Anaconda\envs\DSIN\lib\site-packages\tensorflow\python\framework\errors_impl.py", line 473, in __exit__ c_api.TF_GetCode(self.status.status)) tensorflow.python.framework.errors_impl.InvalidArgumentError: indices[0,3] = 8461 is not in [0, 5973) [[Node: sparse_emb_13-cate_id/Gather_3 = Gather[Tindices=DT_INT32, Tparams=DT_FLOAT, validate_indices=true, _device="/job:localhost/replica:0/task:0/device:CPU:0"](sparse_emb_13-cate_id/embeddings/read, sparse_emb_13-cate_id/Cast_3)]]

changyaoxing commented 1 year ago

You should run the original code instead of my junk. I forked this code from https://github.com/shenweichen/DSIN