mxnet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-mxnet] ChaiBapchya commented on issue #17182: Seg Fault on dot product of sparse matrix with dense matrix
Date Fri, 27 Dec 2019 01:18:10 GMT
ChaiBapchya commented on issue #17182: Seg Fault on dot product of sparse matrix with dense
matrix
URL: https://github.com/apache/incubator-mxnet/issues/17182#issuecomment-569160581
 
 
   Oh okay. So another way of creating sparse matrix is first create scipy.sparse matrix and
then convert it to mxnet.
   Scipy sparse matrix creation revealed the true error
   
   ```
   >>> c = spsp.csr.csr_matrix((np.array([2]),np.array([6]),np.array([0,1])), shape=shape)
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
     File "/home/ubuntu/anaconda3/envs/conda_sparse/lib/python3.6/site-packages/scipy/sparse/compressed.py",
line 108, in __init__
       self.check_format(full_check=False)
     File "/home/ubuntu/anaconda3/envs/conda_sparse/lib/python3.6/site-packages/scipy/sparse/compressed.py",
line 172, in check_format
       "".format(len(self.indptr), major_dim + 1))
   ValueError: index pointer size (2) should be (3)
   ```
   
   So the error handling / messaging can be done better on MXNet side.

----------------------------------------------------------------
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


With regards,
Apache Git Services

Mime
View raw message