eric-haibin-lin commented on issue #17651: Distributed training with kvstore 
crashes if worker has different number of data batches
URL: 
https://github.com/apache/incubator-mxnet/issues/17651#issuecomment-591829871
 
 
   @hkvision what data iterator/dataloader are you using? if you use data 
iterator, you can use io.ResizeIter to make sure the size is balanced. For 
dataloader, you can use the SplitSampler with even_size=True: 
https://gluon-nlp.mxnet.io/_modules/gluonnlp/data/sampler.html#SplitSampler 

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


With regards,
Apache Git Services

Reply via email to