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

Little problem in utils/masking.py #29

Closed
wangxiongts opened this issue Feb 22, 2021 · 4 comments
Closed

Little problem in utils/masking.py #29

wangxiongts opened this issue Feb 22, 2021 · 4 comments

Comments

@wangxiongts
Copy link

Line 15 in utils/masking.py should be dtype=torch.bool, not dytpe=torch.bool. ^-^

@cookieminions
Copy link
Collaborator

Thank you very much! We will correct this soon. (-^〇^-)

@zhouhaoyi
Copy link
Owner

This problem has been pushed. So I will close this issue.

@chenjuncc
Copy link

你好,我还是出现这个错误File "D:\Informer2020-main\utils\masking.py", line 15, in init
_mask = torch.ones(L, scores.shape[-1], dtype=torch.bool).triu(1)
RuntimeError: "triu" not implemented for 'Bool'

@guozaimian
Copy link

您好,同样想问一下,我也是出现了 line 15, in __init__mask = torch.ones(L, scores.shape[-1], dtype=torch.bool).to(device).triu(1)
RuntimeError: name not implemented for 'Bool'这个错误,是如何解决的呢?

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

5 participants