Skip to content
This repository was archived by the owner on Jan 24, 2024. It is now read-only.

Fix out of order#408

Merged
helinwang merged 2 commits intoPaddlePaddle:developfrom
reyoung:feature/fix_mt
Sep 15, 2017
Merged

Fix out of order#408
helinwang merged 2 commits intoPaddlePaddle:developfrom
reyoung:feature/fix_mt

Conversation

@reyoung
Copy link
Collaborator

@reyoung reyoung commented Sep 15, 2017

No description provided.

@reyoung reyoung requested a review from helinwang September 15, 2017 21:20
serve/main.py Outdated
def infer():
sendQ.put(request.json)
success, resp = recvQ.get()
recv_queue = getattr(thread_local, 'recv_queue', None)
Copy link
Collaborator

@helinwang helinwang Sep 15, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we just create a new Queue every time for simplicity? I think we need to avoid premature optimization.

Copy link
Collaborator

@helinwang helinwang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@helinwang helinwang merged commit 16c4f3a into PaddlePaddle:develop Sep 15, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants