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

The code doesn't work #8

Open
Cherrypower opened this issue Oct 4, 2022 · 1 comment
Open

The code doesn't work #8

Cherrypower opened this issue Oct 4, 2022 · 1 comment

Comments

@Cherrypower
Copy link

Hello GTS author, I just started running the source code and got an error message:
(UserWarning: masked_ fill_ received a mask with dtype torch. uint8, this behavior is now deprecated, please use a mask with dtype torch. bool instead.)
But when I replace it, the results will only be displayed to fold: 1, epoch: 1. There is no result after that. Find the solution, Thank you!

@ShichaoSun
Copy link
Owner

This is warning, and I think maybe not care about it.

And may use xxx.bool() to convert it to bool variable.
Help it can help you.

BTW, PyTorch has updated too fast, and this code is implemented by PyTorch 0.4.1 in 2019, which is too out-of-date. If some kpi may not work, you can degrade your PyTorch version.

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