FreakieHuang commented on issue #9126: fix multi worker dataloader deadlock
URL: https://github.com/apache/incubator-mxnet/pull/9126#issuecomment-380717673
 
 
   Sry for my poor English translation skills, I'd write this in Chinese. 
   
   大佬,我在运行你的天池比赛样例的时候,在第十三个代码块中,运行时发生错误:local variable 'idx' referenced before 
assignment
   错误提示如下
   /usr/lib/python2.7/site-packages/mxnet/gluon/data/dataloader.pyc in 
__iter__(self)
         217         for idx, batch in enumerate(self._batch_sampler):
         218             key_queue.put((idx, batch))
   --> 219         num_batches = idx + 1
         220 
         221         data_buffer = {}
   
   私以为num_batches = idx + 1应该tab间隔一下,以便作为for loop中进行操作,希望得到大佬的解答。

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


With regards,
Apache Git Services

Reply via email to