You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found the unit test related selected_rows run failed with cmake flag is WITH_GPU=OFF, and @luotao1 also reproduce this situation on her host:
200: Test command: /usr/bin/env "PYTHONPATH=/paddle/build/python/build/lib-python""/usr/bin/python2.7""-u""-m""unittest""--verbose""test_selected_rows"
200: Test timeout computed to be: 9.99988e+06
200: test_selected_rows (test_selected_rows.TestSelectedRows) ... ERROR
200:
200: ======================================================================
200: ERROR: test_selected_rows (test_selected_rows.TestSelectedRows)
200: ----------------------------------------------------------------------
200: Traceback (most recent call last):
200: File "test_selected_rows.py", line 34, in test_selected_rows
200: self.assertEqual(0, selected_rows.rows()[0])
200: TypeError: Unable to convert functionreturn value to a Python type! The signature was
200: (self: paddle.fluid.core.SelectedRows) -> paddle::framework::Vector<long>
200:
200: ----------------------------------------------------------------------
200: Ran 1 testin 0.000s
It may be a bug in only CPU, and our CI system doesn't run unit tests with WITH_GPU=OFF, so how about turn on the unit tests on CPU? It would increase few minutes (GPU unit tests run 6m), but it may be worth.
The text was updated successfully, but these errors were encountered:
Yancey1989
changed the title
Shall we need to run the unit tests with CPU mode?
Shall we need to run the unit tests with CPU mode on CI
Mar 9, 2018
Maybe we should run CPU test as well, when WITH_GPU=ON? I think by definition test means "run all available tests", and the available tests when WITH_GPU=ON includes the CPU tests.
I found the unit test related
selected_rows
run failed with cmake flag isWITH_GPU=OFF
, and @luotao1 also reproduce this situation on her host:It may be a bug in only CPU, and our CI system doesn't run unit tests with
WITH_GPU=OFF
, so how about turn on the unit tests on CPU? It would increase few minutes (GPU unit tests run 6m), but it may be worth.The text was updated successfully, but these errors were encountered: