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

警告问题 warning problem #10

Open
2anchao opened this issue Jan 7, 2020 · 1 comment
Open

警告问题 warning problem #10

2anchao opened this issue Jan 7, 2020 · 1 comment

Comments

@2anchao
Copy link

2anchao commented Jan 7, 2020

indexing with dtype torch.uint8 is now deprecated, please use a dtype torch.bool instead.
how to avoid this warning when training?

@xytpai
Copy link
Owner

xytpai commented Jan 7, 2020

I use pytorch 1.1.0 in my code. If you use the latest version, you can either omit the warning or replace torch.uint8 with torch.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

2 participants