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

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

Commit be0f17971b722e4f6ad3ae505e29cef7155bc112 in incubator-singa's branch 
refs/heads/master from [~zhongle]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-singa.git;h=be0f179 ]

SINGA-108 Add Python wrapper to singa

Add hook after make python wrappers and run python check only if
--enable-python is declared.

If you want to compile SINGA with python wrappers, just run:
    ./configure --enable-python
    make
After make, you will find a file called "_driver.so" in
tool/python/singa/, which can be imported by python.
If you encounter an error called "Python.h not found", then please
specify your python include path using --with-python. For example:
    ./configure --enable-python --with-python=/usr/local/python2.7
If you do not know the python include path, just run:
    python-config --includes
You can also run "make install" after "make" to automatically copy
_driver.so into tool/python/singa.
For example test, please run this command: (mnist example)
    bin/singa-run.sh -conf examples/mnist/job.cof -exec tool/python/singa.py


> Add Python wrapper to singa
> ---------------------------
>
>                 Key: SINGA-108
>                 URL: https://issues.apache.org/jira/browse/SINGA-108
>             Project: Singa
>          Issue Type: Improvement
>            Reporter: Xie Zhongle
>            Assignee: Xie Zhongle
>
> Currently, we want to add some wrappers for "driver.cc" and "driver.h" so 
> that users can also train their data via python. In details, users can just 
> import some python libraries of singa and call APIs within driver.h in a 
> python style.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to