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 when used cornerpooling in a model #177

Open
icesohelrana opened this issue Mar 27, 2021 · 1 comment
Open

Warning when used cornerpooling in a model #177

icesohelrana opened this issue Mar 27, 2021 · 1 comment

Comments

@icesohelrana
Copy link

Hi, I added cornerpooling in our pytorch model. But it booms following warning. Do you know how to fix this issue?

[W Resize.cpp:19] Warning: An output with one or more elements was resized since it had shape [877], which does not match the required output shape [434].This behavior is deprecated, and in a future PyTorch release outputs will not be resized unless they have zero elements. You can explicitly reuse an out tensor t by resizing it, inplace, to zero elements with t.resize_(0). (function resize_output)
[W LegacyDefinitions.cpp:72] Warning: masked_scatter_ received a mask with dtype torch.uint8, this behavior is now deprecated,please use a mask with dtype torch.bool instead. (function masked_scatter__cuda)
[W LegacyDefinitions.cpp:28] Warning: masked_fill_ received a mask with dtype torch.uint8, this behavior is now deprecated,please use a mask with dtype torch.bool instead. (function masked_fill__cuda)

@icesohelrana icesohelrana changed the title Warning in cornerpooling in pytorch loss.bacward() Warning when used cornerpooling in a model Mar 27, 2021
@shellin-star
Copy link

hello, I meet the same question as you, have you solved it?

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