-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
self.eval_session.run()运算出来的结果维度有问题,会导致解码时代码报错 #70
Labels
help wanted
Extra attention is needed
Comments
Please provide error stack |
是的,我也出现了这个问题。model.py里面train的时候没问题,但是bleu的eval中,outputs维度是三维,就算取第i个,也依然有2维,无法进行接下来的decode操作,请问这是什么原因?我看了下seq2seq代码里面train和eval 进行的output返回值就有差异,有没有人知道怎么解决啊 |
Repository owner
deleted a comment from
Lijiaxing-lx
Aug 2, 2022
Repository owner
deleted a comment from
zhoujinyang1996
Aug 2, 2022
因为eval使用了BeamSearchDecoder 所以输出是多个候选集,一般选择出第一条数据即可 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: