eric-haibin-lin commented on issue #8817: Creating a monodimensional sparse 
array returns an error
URL: 
https://github.com/apache/incubator-mxnet/issues/8817#issuecomment-347424436
 
 
   @reminisce @anirudh2290 @ZiyueHuang @piiswrong  any comment on converting 
shape (10) to (1,10) explicitly for csr & row_sparse arrays? scipy always 
performs that:
   ```
   >>> a = np.ones((10))
   >>> a.shape
   (10,)
   >>> import scipy.sparse as spsp
   >>> spsp.csr_matrix(a)
   <1x10 sparse matrix of type '<type 'numpy.float64'>'
           with 10 stored elements in Compressed Sparse Row format>
   >>> spsp.csc_matrix(a)
   <1x10 sparse matrix of type '<type 'numpy.float64'>'
           with 10 stored elements in Compressed Sparse Column format>
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to