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

Fix out of order #408

Merged
merged 2 commits into from
Sep 15, 2017
Merged

Fix out of order #408

merged 2 commits into from
Sep 15, 2017

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


@app.route('/', methods=['POST'])
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants