sony / nnabla

Neural Network Libraries
https://nnabla.org/
Apache License 2.0
2.73k stars 334 forks source link

Enlarge interpolate test rtol #1186

Closed TomonobuTsujikawa closed 1 year ago

TomonobuTsujikawa commented 1 year ago

Some cases in test_interpolate.py failed on Linux. This was also happened on Win32 before, and allowed it by https://github.com/sony/nnabla/pull/1142 . But, on Linux, these test cases were mistakenly ignored. After be added back by https://github.com/sony/nnabla-ext-cuda/pull/458, same failure is occurred.

So, this PR relaxes rtol_accum.

E       AssertionError: 
E       Not equal to tolerance rtol=1e-05, atol=0.01
E       Backward (accum) of the backward function (interpolate_backward) wrt 0-th / 2 input fails.
E       Mismatched elements: 24 / 288 (8.33%)
E       Max absolute difference: 0.01279515
E       Max relative difference: 0.00787364
E        x: array([1.612266, 1.612266, 1.612266, 1.612266, 1.612266, 1.612266,
E              1.612266, 1.612266, 1.612266, 1.612266, 1.612266, 1.612266,
E              1.612266, 1.612266, 1.612266, 1.612266, 1.612266, 1.612266,...
E        y: array([1.621246, 1.615524, 1.621246, 1.615524, 1.615524, 1.615524,
E              1.625061, 1.613617, 1.621246, 1.615524, 1.621246, 1.615524,
E              1.621246, 1.615524, 1.621246, 1.613617, 1.621246, 1.615524,...
/tmp/.local/lib/python3.10/site-packages/nnabla/testing/__init__.py:25: AssertionError