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

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

Commit 50f672267c8f2d88951c804cad6df833f89b0428 in incubator-singa's branch 
refs/heads/dev from chonho
[ https://git-wip-us.apache.org/repos/asf?p=incubator-singa.git;h=50f6722 ]

SINGA-186 Create Python Tensor class

- Add numpy.i in src/python/swig
  . core_tensor.i is revised to include it
  . GetValue method is added in singa::Tensor class (tensor.h)
  . in tensor.py, the member methods are added to get/set numpy array from/to 
tensor data
     . copy_from_numpy, which calls singa::Tensor::CopyDataFromHostPtr
     . copy_to_numpy, which calls singa::Tensor::GetValue
  . also global functions are added
     . from_numpy
     . to_numpy

NOTE: numpy.i is downloaded from 
https://github.com/numpy/numpy/tree/master/tools/swig

TODO: unittest_python.py


> Create Python Tensor class
> --------------------------
>
>                 Key: SINGA-186
>                 URL: https://issues.apache.org/jira/browse/SINGA-186
>             Project: Singa
>          Issue Type: New Feature
>            Reporter: wangwei
>            Assignee: wangwei
>
> This ticket would add a Python Tensor class, which provides functions as the 
> C++ Tensor class with APIs in Python convention. Most of these functions are 
> implemented by calling the C++ Tensor functions via Swig.



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

Reply via email to