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 2019/03/06 11:42:02 UTC
[GitHub] [incubator-mxnet] kohillyang edited a comment on issue #13199:
Namescope is None when hybridize in multi-threading environment.
AttributeError: 'NoneType' object has no attribute '__exit__'
kohillyang edited a comment on issue #13199: Namescope is None when hybridize in multi-threading environment. AttributeError: 'NoneType' object has no attribute '__exit__'
URL: https://github.com/apache/incubator-mxnet/issues/13199#issuecomment-470076353
@wkcn, Glad to see this issue is going to be resolved.
One case threading is needed is that when some operators are written by numpy, especially when the batch size is small, which is common in object detection. Using multi-threading can get a speed improvement of about 15% according to my test on 8x P40
Anyway, At least according to my test, mxnet has already supported the multi-threading training, for example, <https://github.com/dmlc/gluon-cv/blob/master/gluoncv/utils/parallel.py>, and <https://github.com/dmlc/gluon-cv/blob/master/scripts/segmentation/train.py> uses `parallel.py` to speed training up. There maybe no extra works need to be done.
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services