singa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (SINGA-186) Create Python Tensor class
Date Fri, 01 Jul 2016 08:25:11 GMT


ASF subversion and git services commented on SINGA-186:

Commit 50f672267c8f2d88951c804cad6df833f89b0428 in incubator-singa's branch refs/heads/dev
from chonho
[;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, 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


> Create Python Tensor class
> --------------------------
>                 Key: SINGA-186
>                 URL:
>             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

View raw message