Skip to content
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

Open
longglecc opened this issue Oct 9, 2021 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@longglecc
Copy link

No description provided.

@wb14123
Copy link
Owner

wb14123 commented May 5, 2022

Please provide error stack

@Drizzlenum
Copy link

是的,我也出现了这个问题。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
@wb14123 wb14123 added the help wanted Extra attention is needed label Aug 2, 2022
@cui-z
Copy link

cui-z commented Aug 4, 2022

因为eval使用了BeamSearchDecoder 所以输出是多个候选集,一般选择出第一条数据即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants