You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@singa.apache.org by "wangwei (JIRA)" <ji...@apache.org> on 2018/04/25 05:06:00 UTC
[jira] [Created] (SINGA-350) Error from python3 test
wangwei created SINGA-350:
-----------------------------
Summary: Error from python3 test
Key: SINGA-350
URL: https://issues.apache.org/jira/browse/SINGA-350
Project: Singa
Issue Type: Bug
Reporter: wangwei
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)