-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ML] Do not block queue while waiting for PyTorch results (#80074)
Since we introduced queueing of the inference requests, we should not be waiting for the result in the operation that runs in the queue as that blocks the queue. In particular, this means we cannot benefit from parallel forwarding when `model_threads` is set to more than one. In addition, since we now handle timeouts by having a scheduled run, we do not ever need to wait on a latch for pending results. We just need to store the listener and notify it when the result is processed.
- Loading branch information
1 parent
4f2ff7f
commit 5a41fa4
Showing
2 changed files
with
57 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters