-
Notifications
You must be signed in to change notification settings - Fork 744
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
pytorch bug? #1250
Comments
You're probably not calling the function you want to call. Try to call the one with AdaptiveAvgPool2dOptions as parameter. |
I have tried it at the first, but I still got a wrong shape tensor. |
If you have a working example in C++, please provide it. It should be easy to translate it to Java. |
Ah, I see what's wrong. We need an array of LongOptional for this. I've pushed a fix in commit 94268bb, and it's a bit awkward, but it works this way: LongOptionalVector size = new LongOptionalVector(new LongOptional(7), new LongOptional(7));
Tensor output = adaptive_avg_pool2d(input, size.get(0)); Thanks for reporting! |
The fix for this has been released with version 1.5.8! Enjoy |
I want to use
adaptive_avg_pool2d
function to transform input tensor to output tensor:The input variable's shape is
[64, 512, 7, 7]
, but the output's shape is[64, 512, 0, 7]
.The correct output shape should be
[64, 512, 7, 7]
The text was updated successfully, but these errors were encountered: