electriclilies opened a new issue #6237:
URL: https://github.com/apache/incubator-tvm/issues/6237
The relay reshape function produces incorrect results. For scale factors
other than 2, the output of relay.resize does not match the testing function.
The test I changed:
`--- a/tests/python/relay/test_op_level5.py
+++ b/tests/python/relay/test_op_level5.py
@@ -66,7 +66,7 @@ def test_resize():
tvm.testing.assert_allclose(op_res.asnumpy(), ref_res,
rtol=1e-4, atol=1e-6)
for method in ["bilinear", "nearest_neighbor"]:
for layout in ["NHWC", "NCHW"]:
- verify_resize((1, 4, 4, 4), 2, method, layout)
+ verify_resize((1, 4, 4, 4), 7, method, layout)`
In this particular case, we get this error:
` AssertionError:
Not equal to tolerance rtol=0.0001, atol=1e-06
Mismatched elements: 832 / 3136 (26.5%)
Max absolute difference: 0.8489792
Max relative difference: 711.5619
x: array([[[[0.507647, 0.792792, 0.245963, 0.439271],
[0.507647, 0.792792, 0.245963, 0.439271],
[0.507647, 0.792792, 0.245963, 0.439271],...
y: array([[[[0.507647, 0.792792, 0.245963, 0.439271],
[0.507647, 0.792792, 0.245963, 0.439271],
[0.507647, 0.792792, 0.245963, 0.439271],...
`
cc @mbrookhart
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]