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

Moaz Reyad commented on SINGA-350:
----------------------------------

After several tries, I couldn't reproduce this bug because the description is 
not complete.

Please remember to include the precise steps to reproduce the bug and not only 
an error message. The steps include which version of the SINGA did you use, 
what are building options and what is the target platform. 

The Pull Request for SINGA-290 doesn't generate this bug as far as I know. It 
is probably related to changes made after SINGA-290 was done.

> 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)

Reply via email to