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

(PyTorch0.4.0) AttributeError: module 'torch' has no attribute 'bool' #6

Open
D77-d77 opened this issue Oct 15, 2020 · 2 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@D77-d77
Copy link

D77-d77 commented Oct 15, 2020

@nickhuang1996
Hi, I find that your code supports torch 0.4.0, but when I train MDRS in triplet loss, it occurs error:
**AttributeError: module 'torch' has no attribute 'bool'.**😭
Please fix this bugs. Or does I get high torch version?? Please reply kindly.

@nickhuang1996
Copy link
Owner

@hhhjjjooo
Hi, torch versions update quickly so torch 0.4.0 may have some bugs. You can try .bool() or .byte() in future versions.😉

@nickhuang1996 nickhuang1996 added the bug Something isn't working label Oct 16, 2020
@D77-d77
Copy link
Author

D77-d77 commented Oct 17, 2020

@nickhuang1996
Thanks!!
I have installed torch 1.0.1 and test your models. These are much useful for my studies!!😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants