-
Notifications
You must be signed in to change notification settings - Fork 751
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
[bug] javacpp -pytorch UpsampleImpl have bad bug ,can not work #1592
Comments
You'll need to set the values of scale_factor for this to work |
|
Do like #1594 |
for DoubleVector put value maybe is complex than DoublePointer I try to use options.scale_factor().put(DoubleVector(1).put(3)), then scale_factor is set ,but forward() meet error
|
HI ,@saudet pure javacpp code, unsample really can not work
console log
same python code
|
Please try to set the "org.bytedeco.javacpp.nopointergc" system property to "true". |
·```
}
Testing started at 19:43 ... munit.ComparisonFailException: D:\data\storch_demo\src\main\scala\torch\pooltest.scala:422
|
·```
Testing started at 19:46 ... java.lang.RuntimeException: invalid vector subscript
·``` |
Hi, @saudet
UpsampleImpl javacpp have bad bug, the same input parameter cannot work in javacpp ,please fix up
in python example
···
input_3x3 = torch.zeros(3, 3).view(1, 1, 3, 3)
print(input_3x3.shape)
m = nn.Upsample(scale_factor=2, mode='bilinear', align_corners=True)
# Notice that values in top left corner are now changed
output = m(input_3x3)
print(output.shape)
···
python console
in javacpp
console log
The text was updated successfully, but these errors were encountered: