singa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [singa] Shashankwer opened a new issue #704: Creation of tensor in 3.0.0 results in NonImplementedError
Date Tue, 19 May 2020 05:20:08 GMT

Shashankwer opened a new issue #704:
URL: https://github.com/apache/singa/issues/704


   Hi, 
   
   For the creation of Tensor in singa 3.0.0 cpu for py36 results in an error as described
below: 
   
   NotImplementedError: Wrong number or type of arguments for overloaded function 'new_Tensor'.
     Possible C/C++ prototypes are:
       singa::Tensor::Tensor()
       singa::Tensor::Tensor(std::vector< size_t,std::allocator< size_t > > const
&,singa::DataType)
       singa::Tensor::Tensor(std::vector< size_t,std::allocator< size_t > > const
&)
       singa::Tensor::Tensor(std::vector< size_t,std::allocator< size_t > > const
&,std::shared_ptr< singa::Device >,singa::DataType)
       singa::Tensor::Tensor(std::vector< size_t,std::allocator< size_t > > const
&,std::shared_ptr< singa::Device >)
       singa::Tensor::Tensor(singa::Tensor const &)
   
   The tensor were created from numpy with code implementation as below: 
   
   import numpy as np
   from singa import tensor
   
   tensor.from_numpy( np.asarray([[1, 0, 0], [0, 1, 0]], dtype=np.float32) )
   
   Following are the operating system specification: 
   
   OS: MacOS version 10.15.3
   python version: 3.6.10
   singa: 3.0.0 cpu_py36
   
   The same code seems to work on singa version 3.0.0.rc1              cpu_py36 
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



Mime
View raw message