You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mxnet.apache.org by "Haibin Lin (JIRA)" <ji...@apache.org> on 2018/03/22 01:14:00 UTC

[jira] [Created] (MXNET-123) Fix race condition in sparse batch loader

Haibin Lin created MXNET-123:
--------------------------------

             Summary: Fix race condition in sparse batch loader
                 Key: MXNET-123
                 URL: https://issues.apache.org/jira/browse/MXNET-123
             Project: Apache MXNet
          Issue Type: Bug
            Reporter: Haibin Lin


The previous implementation of sparse batch loader waits for the number of data instances reaches {{batch_size}} before allocating the buffer for copy (unlike dense batch loader, we don't know the actual buffer size to allocate since the number of non-zeros varies). However, such delayed allocate is buggy when batch size is extremely large, because the {{DataInst}} returned by {{base_}} is only a reference to the data. By the time copy happens, the referenced data might already be updated by the parser.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org