shicong created SINGA-462: ----------------------------- Summary: Python - Unit test - tensor.transpose failed Key: SINGA-462 URL: https://issues.apache.org/jira/browse/SINGA-462 Project: Singa Issue Type: Bug Reporter: shicong
currently the python transpose result is tested by {quote}def test_transpose(self): .... self.assertAlmostEqual(np.sum(TA1 - A1), 0.,places=3) self.assertAlmostEqual(np.sum(TA2 - A2), 0.,places=3) {quote} However sum of errors will not work for this test. With the below assertion, the test will fail. {quote}np.testing.assert_almost_equal(TA1,A1) np.testing.assert_almost_equal(TA2,A2) {quote} This also affects other unit test depending on transpose -- This message was sent by Atlassian JIRA (v7.6.3#76005)