Open wuhua5027 opened 2 years ago
+1
可以检查下是不是tf版本的问题, 代码在 tf1.4上应该是没有问题的
老师,您好,我在unbuntu20.04上使用docker安装的tf1.4,还是有上述问题,这是我的报错截图:
异常信息如下:
抱歉 确认了下 tf版本写的有问题 实验的版本应该是tf1.14 不是1.4
老师,我在tf1.14的环境尝试了也是同样的错误,感谢您的回复:
日志:
我没遇到过这个问题 实在不行可以试试修改utils /load_data.py里面的第18行,之前是用-1padding的 可以改成0试试 可能会影响一点效果
InvalidArgumentError (see above for traceback): indices[0,26] = -1 is not in [0, 114520) [[Node: embedding_lookup = Gather[Tindices=DT_INT64, Tparams=DT_FLOAT, _class=["loc:@w_emb"], validate_indices=true, _device="/job:localhost/replica:0/task:0/device:CPU:0"](w_emb/read, _arg_sent_0_3)]]