[WIP] Introduce fork/wait frontend#12925
Closed
highker wants to merge 1 commit intopytorch:masterfrom
Closed
Conversation
b628f45 to
ab3f751
Compare
Add two new functions for jit script: fork and wait. fork takes a function name together with a tuple of inputs and returns a future. wait takes a future and return the value of the function result evaluated on the tuple of inputs. This patch only introduces the syntax without a real fork or wait.
Closed
Author
|
superseded by #12976 |
facebook-github-bot
pushed a commit
that referenced
this pull request
Oct 27, 2018
laurentdupin
pushed a commit
to laurentdupin/pytorch
that referenced
this pull request
Apr 24, 2026
Summary: Future now is an IValue. prim::Wait now is replaced by aten::wait This PR is built on top of pytorch#12925 Pull Request resolved: pytorch#12976 Differential Revision: D10861483 Pulled By: highker fbshipit-source-id: 9e17926a625bc502fb12335ef9ce819f25776be7
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
There still has remaining comments unaddressed from #12405
Add two new functions for jit script: fork and wait. fork takes a
function name together with a tuple of inputs and returns a future. wait
takes a future and return the value of the function result evaluated on
the tuple of inputs. This patch only introduces the syntax without a real
fork or wait.