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=16875519#comment-16875519
] 

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

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

fixed reshape implementation, added more python unittest, fixed python tensor unittest 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: 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