-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
关于项目的运行 #2
Comments
您好, |
详细的报错: During handling of the above exception, another exception occurred: Traceback (most recent call last): Caused by op 'embedding_lookup_6', defined at: InvalidArgumentError (see above for traceback): indices[22,26,0] = 292 is not in [0, 292) 但是我修改run.py中的 |
如果训练可以继续,那便是可以的~ |
请问关于这个问题有什么进展吗?我也遇到了同样的问题,我觉得是tree的vocabulary有292个,所以embedding取值应该是0-291,但是不知什么原因,代码里某处要给某个矩阵位置赋一个为292的值,所以出现了这个问题。 |
我的环境是python3.6, tensorflow1.12.0, ubuntu20.04, NLTK3.2.1 |
您好,我找到问题了, |
您好,谢谢您,您这个修改应该是对的 (虽然我不知道我为什么可以训练,但是我看了数据,我觉得您的修改没问题,直接把这行注释了吧,ATIS我看了数据应该需要这一行)。 感谢您的关注~ Zeyu |
我在命令行输入:python run.py HS-B 运行您的代码的时出现错误:
InvalidArgumentError (see above for traceback): indices[29,26,0] = 292 is not in [0, 292)
[[node embedding_lookup_6 (defined at E:\TreeGen-master\code_generate_model.py:677) ]]
code_generate_model.py中
new_m = common_layers.cast_like(new_m, var)
报错 Unresolved reference 'common_layers'(依赖包已经全部装好,我的使用的系统环境是win10。)
想请问您如何解决这个问题,并完整运行整个项目。
The text was updated successfully, but these errors were encountered: