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

pytorch version ? Providing a bool or integral fill value without setting the optional dtype or out arguments is currently unsupported. In PyTorch 1.7, #103

Open
anbo724 opened this issue Jun 18, 2021 · 2 comments

Comments

@anbo724
Copy link

anbo724 commented Jun 18, 2021

训练报错 Providing a bool or integral fill value without setting the optional dtype or out arguments is currently unsupported. In PyTorch 1.7,
什么版本的pytoch可以使用?

@GrittyChen
Copy link
Member

训练报错 Providing a bool or integral fill value without setting the optional dtype or out arguments is currently unsupported. In PyTorch 1.7,
什么版本的pytoch可以使用?

可以考虑使用低版本的PyTorch,比如1.4版本,如果方便的话,请告知一下具体报错的代码位置,我们会尽快修复这个bug,谢谢!

@leileilin
Copy link

训练报错 Providing a bool or integral fill value without setting the optional dtype or out arguments is currently unsupported. In PyTorch 1.7,
什么版本的pytoch可以使用?

可以考虑使用低版本的PyTorch,比如1.4版本,如果方便的话,请告知一下具体报错的代码位置,我们会尽快修复这个bug,谢谢!

在inference.py中的init_seqs = torch.full([batch_size, beam_size, 1], bos_id, device=device)加上dtype=torch.long应该可以解决。

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

3 participants