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, 22 Jun 2019 13:28:00 GMT

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

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

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

Merge pull request #469 from dcslin/SINGA-462

transpose reshape fix ref. SINGA-462

> 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: 20m
>  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