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

source/model/seq2seq.py : 386 不应该从属于gpu判断分支下面 #3

Open
season1blue opened this issue Jul 12, 2022 · 1 comment

Comments

@season1blue
Copy link

你好,seq2seq.py: 386 是否不应该从属于gpu判断分支下面?
当不使用gpu时,selector_target和pad_zeros就不会放在一起,会报错
而且判断逻辑上也不太适合根据是否使用gpu来判断是否pad吧

@iwangjian
Copy link
Contributor

这里确实不太妥当,代码已经进行了适当修改,非常感谢指正!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants