chrishkchris commented on pull request #747:
URL: https://github.com/apache/singa/pull/747#issuecomment-646958472
The movitation of this PR is also to solve the two failed onnx test case
```
======================================================================
FAIL: test_equal_bcast_cpu (__main__.OnnxBackendNodeModelTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/local/lib/python3.6/dist-packages/onnx/backend/test/runner/__init__.py",
line 248, in device_test_func
return test_func(*args, device=device, **kwargs)
File
"/usr/local/lib/python3.6/dist-packages/onnx/backend/test/runner/__init__.py",
line 313, in run
atol=model_test.atol)
File
"/usr/local/lib/python3.6/dist-packages/onnx/backend/test/runner/__init__.py",
line 178, in assert_similar_outputs
atol=atol)
File
"/usr/local/lib/python3.6/dist-packages/numpy/testing/_private/utils.py", line
1533, in assert_allclose
verbose=verbose, header=header, equal_nan=equal_nan)
File
"/usr/local/lib/python3.6/dist-packages/numpy/testing/_private/utils.py", line
846, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Not equal to tolerance rtol=0.001, atol=1e-07
Mismatched elements: 1 / 60 (1.67%)
x: array([[[False, False, False, False, False],
[False, False, False, False, False],
[False, False, False, False, False],...
y: array([[[False, False, False, False, False],
[False, False, False, False, False],
[False, False, False, False, False],...
======================================================================
FAIL: test_equal_cpu (__main__.OnnxBackendNodeModelTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/local/lib/python3.6/dist-packages/onnx/backend/test/runner/__init__.py",
line 248, in device_test_func
return test_func(*args, device=device, **kwargs)
File
"/usr/local/lib/python3.6/dist-packages/onnx/backend/test/runner/__init__.py",
line 313, in run
atol=model_test.atol)
File
"/usr/local/lib/python3.6/dist-packages/onnx/backend/test/runner/__init__.py",
line 178, in assert_similar_outputs
atol=atol)
File
"/usr/local/lib/python3.6/dist-packages/numpy/testing/_private/utils.py", line
1533, in assert_allclose
verbose=verbose, header=header, equal_nan=equal_nan)
File
"/usr/local/lib/python3.6/dist-packages/numpy/testing/_private/utils.py", line
846, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Not equal to tolerance rtol=0.001, atol=1e-07
Mismatched elements: 1 / 60 (1.67%)
x: array([[[False, False, False, False, False],
[False, False, False, False, False],
[False, False, False, False, True],...
y: array([[[False, False, False, False, False],
[False, False, False, False, False],
[False, False, False, False, True],...
```
----------------------------------------------------------------
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]