You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@singa.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/05/05 13:01:00 UTC

[jira] [Commented] (SINGA-350) Error from python3 test

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

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

Commit 72b1a69df14a7e14a2456f32eb6e3e0730d325d9 in incubator-singa's branch refs/heads/master from Wang Wei
[ https://git-wip-us.apache.org/repos/asf?p=incubator-singa.git;h=72b1a69 ]

SINGA-350 Error from python3 test

Update the minimum version of swig to 3.0.10, which is required
to fix the bugs (related to string) from py3.

Add comments in model_layer.i for handling strings.


> Error from python3 test 
> ------------------------
>
>                 Key: SINGA-350
>                 URL: https://issues.apache.org/jira/browse/SINGA-350
>             Project: Singa
>          Issue Type: Bug
>            Reporter: wangwei
>            Priority: Major
>
> If we compile Singa with Python 3, the unit tests report the following errors:
>  
> {code:java}
> + cd ../test/python
> + '[' PYTHON3 = PYTHON3 ']'
> + PYTHONPATH=../../build/python/
> + python3 run.py
> Running tests...
> ----------------------------------------------------------------------
> EEEEEEEEEEEEEEEE.....E.....EE.............
> ======================================================================
> ERROR [0.000s]: test_activation (test_layer.TestPythonLayer)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/var/jenkins/workspace/gpu-test-py3/label/cuda9.0-cudnn7.1.2-py3/test/python/test_layer.py", line 187, in test_activation
>     act = layer.Activation('act', input_sample_shape=input_sample_shape)
>   File "/var/jenkins/workspace/gpu-test-py3/label/cuda9.0-cudnn7.1.2-py3/build/python/singa/layer.py", line 760, in __init__
>     self.layer = _create_layer(engine, mode)
>   File "/var/jenkins/workspace/gpu-test-py3/label/cuda9.0-cudnn7.1.2-py3/build/python/singa/layer.py", line 1188, in _create_layer
>     return singa_wrap.CreateLayer(layer_type.lower().encode())
> TypeError: in method 'CreateLayer', argument 1 of type 'std::string const &'
> ======================================================================
> ERROR [0.000s]: test_avg_pooling1D (test_layer.TestPythonLayer)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/var/jenkins/workspace/gpu-test-py3/label/cuda9.0-cudnn7.1.2-py3/test/python/test_layer.py", line 158, in test_avg_pooling1D
>     input_sample_shape=in_sample_shape)
>   File "/var/jenkins/workspace/gpu-test-py3/label/cuda9.0-cudnn7.1.2-py3/build/python/singa/layer.py", line 532, in __init__
>     data_format, input_sample_shape)
>   File "/var/jenkins/workspace/gpu-test-py3/label/cuda9.0-cudnn7.1.2-py3/build/python/singa/layer.py", line 485, in __init__
>     pad, data_format, input_sample_shape)
>   File "/var/jenkins/workspace/gpu-test-py3/label/cuda9.0-cudnn7.1.2-py3/build/python/singa/layer.py", line 451, in __init__
>     self.layer = _create_layer(engine, 'Pooling')
>   File "/var/jenkins/workspace/gpu-test-py3/label/cuda9.0-cudnn7.1.2-py3/build/python/singa/layer.py", line 1188, in _create_layer
>     return singa_wrap.CreateLayer(layer_type.lower().encode())
> TypeError: in method 'CreateLayer', argument 1 of type 'std::string const &'
> {code}
> It could be related with swig SINGA-290



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