leezu opened a new pull request #10813: Fix context handling when creating 
sparse arrays from definition
URL: https://github.com/apache/incubator-mxnet/pull/10813
 
 
   ## Description ##
   @eric-haibin-lin 
   
   Currently when creating a sparse array from definition (ie. dense data array 
and indices) without specifying a context, mxnet assumes it should use the 
default context (eg CPU). This leads to the following crash in case that the 
dense data and indices arrays live on GPU.
   
   `Default GPU stream was used when MSHADOW_FORCE_STREAM was on`
   
   This PR fixes the issue by making sure the data and indices arrays live on 
the chosen context.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to