You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2017/12/01 06:41:00 UTC

[GitHub] marfago commented on issue #8849: support monodimensional sparse array

marfago commented on issue #8849:   support monodimensional sparse array
URL: https://github.com/apache/incubator-mxnet/pull/8849#issuecomment-348414582
 
 
   @piiswrong now it is possible to create a dense vector as
   ```
   mx.nd.zeros(10, mx.cpu()) -> shape=(10,)
   ```
   
   but it is not possible to create a sparse vector like
   ```
   mx.nd.zeros(10, mx.cpu(), stype='csr') -> error
   ```
   
   I think there should be the same behavior between sparse and dense vector function/operators.
   In the case above it should be:
   ```
   mx.nd.zeros(10, mx.cpu(), stype='csr') -> shape=(10,)
   ```
   Moreover, operators that currently work with dense vector should work with sparse vectors in the same fashion.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services