lfch commented on issue #1532: URL: https://github.com/apache/incubator-brpc/issues/1532#issuecomment-901565368
server是一个异步IO的,会开启bthread功能,让接收到的请求直接在bthread中执行。执行过程中,会调用到tensorflow的Session::Run()函数。tensorflow内部有自己的pthread线程池,所以进入到Session::Run()函数之后,会进行并行的计算。我的疑问是server开启了bthread功能的场景下,此时tensorflow内部的并行用的pthread,还是bthread呢? 代码在https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/common_runtime/direct_session.cc 中 Status DirectSession::RunInternal()函数中。 <img width="852" alt="截屏2021-08-19 上午10 42 19" src="https://user-images.githubusercontent.com/5698293/129999069-89678794-32d4-4573-b35a-9b27dc30c436.png"> -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
