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/02/28 01:37:39 UTC

[GitHub] leleamol commented on issue #14260: c/c++ multiple threads inference problem

leleamol commented on issue #14260: c/c++ multiple threads inference problem
URL: https://github.com/apache/incubator-mxnet/issues/14260#issuecomment-468101141
 
 
   @JohnLee168 based on my understanding and documentation the MXPredCreateMultiThread() can be used only when the EngineType is NaiveEngine.
   
   It is possible to reuse  PredictorHandle created by MXPredCreate() in a single threaded environment by calling MXPredForward().
   In case of multi-threaded environment, if you want to reuse PredictorHandle, you would have to keep the operations MXPredSetInput(),  MXPredForward() and MXPredGetOutput() in the critical region protected by exclusive lock. 
   
   Since this is a question, please submit them on MXNet discussion forum (https://discuss.mxnet.io), where it will get a wider audience and allow other to learn as well.
    I would propose to close this issue now in favor of the discussion forum issue you will file, please feel free to re-open if closed in error.
    Thanks!"
   
   @mxnet-label-bot add [Question, C API, Thread Safety]
   
   

----------------------------------------------------------------
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