singa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xue Wanqi (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SINGA-389) Some bugs in python test case.
Date Wed, 15 Aug 2018 03:07:00 GMT

     [ https://issues.apache.org/jira/browse/SINGA-389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Xue Wanqi updated SINGA-389:
----------------------------
    Description: 
- 1 error in test_loss.py

{code:java}
root@ad60f1844b71:/wanqi/incubator-singa/test/python# python test_loss.py
..E
======================================================================
ERROR: test_squared_error (__main__.TestLoss)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_loss.py", line 60, in test_squared_error
    self.assertAlmostEqual(l1.l1(), l2)
  File "/usr/lib/python2.7/unittest/case.py", line 554, in assertAlmostEqual
    if round(abs(second-first), places) == 0:
TypeError: bad operand type for abs(): 'Tensor'

----------------------------------------------------------------------
Ran 3 tests in 0.002s

FAILED (errors=1)
{code}


 - 1 error in test_net.py

{code:java}
root@ad60f1844b71:/wanqi/incubator-singa/test/python# python test_net.py
('relu1', (2L,))
('relu2', (2L,))
('merge', [(2L,), (2L,)])
.('relu1', (2L,))
('relu2', (2L,))
('merge', [(2L,), (2L,)])
('split', [(2L,), (2L,)])
('split1', (2L,))
('split2', (2L,))
.('conv', (4L, 12L, 12L))
('flat', (576L,))
('dense', (4L,))
E('relu1', (2L,))
('relu2', (2L,))
.('conv', (4L, 12L, 12L))
('flat', (576L,))
('dense', (4L,))
.
======================================================================
ERROR: test_save_load (__main__.TestFeedForwardNet)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_net.py", line 87, in test_save_load
    ffn.save('test_snaphost')
  File "/usr/local/lib/python2.7/dist-packages/singa/net.py", line 475, in save
    params['SINGA_VERSION'] = v
UnboundLocalError: local variable 'params' referenced before assignment

----------------------------------------------------------------------
Ran 5 tests in 0.003s

FAILED (errors=1)
{code}


 - 1 error in test_tensor.py

{code:java}
root@ad60f1844b71:/wanqi/incubator-singa/test/python# python test_tensor.py
...............F..
======================================================================
FAIL: test_tensordot (__main__.TestTensorMethods)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_tensor.py", line 248, in test_tensordot
    self.assertAlmostEqual(np.sum(Tres2 - res2), 0., places=3)
AssertionError: 0.080000343322753409 != 0.0 within 3 places

----------------------------------------------------------------------
Ran 18 tests in 0.007s

FAILED (failures=1)
{code}


  was:
- 1 error in test_loss.py
- 1 error in test_net.py
- 1 error in test_tensor.py


> Some bugs in python test case.
> ------------------------------
>
>                 Key: SINGA-389
>                 URL: https://issues.apache.org/jira/browse/SINGA-389
>             Project: Singa
>          Issue Type: Bug
>            Reporter: Xue Wanqi
>            Priority: Major
>
> - 1 error in test_loss.py
> {code:java}
> root@ad60f1844b71:/wanqi/incubator-singa/test/python# python test_loss.py
> ..E
> ======================================================================
> ERROR: test_squared_error (__main__.TestLoss)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "test_loss.py", line 60, in test_squared_error
>     self.assertAlmostEqual(l1.l1(), l2)
>   File "/usr/lib/python2.7/unittest/case.py", line 554, in assertAlmostEqual
>     if round(abs(second-first), places) == 0:
> TypeError: bad operand type for abs(): 'Tensor'
> ----------------------------------------------------------------------
> Ran 3 tests in 0.002s
> FAILED (errors=1)
> {code}
>  - 1 error in test_net.py
> {code:java}
> root@ad60f1844b71:/wanqi/incubator-singa/test/python# python test_net.py
> ('relu1', (2L,))
> ('relu2', (2L,))
> ('merge', [(2L,), (2L,)])
> .('relu1', (2L,))
> ('relu2', (2L,))
> ('merge', [(2L,), (2L,)])
> ('split', [(2L,), (2L,)])
> ('split1', (2L,))
> ('split2', (2L,))
> .('conv', (4L, 12L, 12L))
> ('flat', (576L,))
> ('dense', (4L,))
> E('relu1', (2L,))
> ('relu2', (2L,))
> .('conv', (4L, 12L, 12L))
> ('flat', (576L,))
> ('dense', (4L,))
> .
> ======================================================================
> ERROR: test_save_load (__main__.TestFeedForwardNet)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "test_net.py", line 87, in test_save_load
>     ffn.save('test_snaphost')
>   File "/usr/local/lib/python2.7/dist-packages/singa/net.py", line 475, in save
>     params['SINGA_VERSION'] = v
> UnboundLocalError: local variable 'params' referenced before assignment
> ----------------------------------------------------------------------
> Ran 5 tests in 0.003s
> FAILED (errors=1)
> {code}
>  - 1 error in test_tensor.py
> {code:java}
> root@ad60f1844b71:/wanqi/incubator-singa/test/python# python test_tensor.py
> ...............F..
> ======================================================================
> FAIL: test_tensordot (__main__.TestTensorMethods)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "test_tensor.py", line 248, in test_tensordot
>     self.assertAlmostEqual(np.sum(Tres2 - res2), 0., places=3)
> AssertionError: 0.080000343322753409 != 0.0 within 3 places
> ----------------------------------------------------------------------
> Ran 18 tests in 0.007s
> FAILED (failures=1)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message