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 2018/05/04 20:16:22 UTC

[GitHub] leezu opened a new pull request #10813: Fix context handling when creating sparse arrays from definition

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


With regards,
Apache Git Services