New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
可以配合tornado使用么? #81
Comments
代码如下:
|
好像不支持异步,你有解决方案吗 |
可能不能直接支持,tornado有自己的事件循环,跟这里面的thread会有冲突。你可能需要自己将tornado接收的请求放到一个任务队列,再用streamer进行batching |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
作者您好, 我试了一下讲flask替换为tornado, batchsize一直是1, log如下:
INFO:service_streamer.service_streamer:[gpu worker 271141] run_once batch_size: 1 start_at: 1597397389.1931512 spend: 2.809465646743774
是不能配合tornado使用么?
The text was updated successfully, but these errors were encountered: