singa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SINGA-462) Python - Unit test - tensor.transpose failed
Date Sat, 29 Jun 2019 14:14:00 GMT

    [ https://issues.apache.org/jira/browse/SINGA-462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16875522#comment-16875522
] 

ASF subversion and git services commented on SINGA-462:
-------------------------------------------------------

Commit c550298e483b7f6963b9a6566a655089813da445 in incubator-singa's branch refs/heads/master
from Wei Wang
[ https://gitbox.apache.org/repos/asf?p=incubator-singa.git;h=c550298 ]

Merge pull request #470 from dcslin/SINGA-462

SINGA-462 fix reshape and related

> 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
>            Priority: Major
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> 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)

Mime
View raw message