Add Future to IValue#12976
Conversation
zdevito
left a comment
There was a problem hiding this comment.
Cool! Thanks for updating the way emitApplyExpr works. I put some comments in about actually generating the inner Graph for the fork node.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
5461791 to
8defde9
Compare
8defde9 to
8e3d935
Compare
|
@zdevito comments addressed; thanks for review! |
facebook-github-bot
left a comment
There was a problem hiding this comment.
highker has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
8e3d935 to
385a7b4
Compare
|
@pytorchbot retest this please |
385a7b4 to
a6716a6
Compare
zdevito
left a comment
There was a problem hiding this comment.
Cool! I have a few minor things, but they should be easy to fix.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
a6716a6 to
bf1caaa
Compare
facebook-github-bot
left a comment
There was a problem hiding this comment.
highker has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Add two new functions for jit script: fork and wait. fork takes a function name together with a list 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. The fork will eagerly execute the function it takes and wait is a dummy function doing nothing.
bf1caaa to
444a45c
Compare
facebook-github-bot
left a comment
There was a problem hiding this comment.
highker is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Summary: Future now is an IValue. prim::Wait now is replaced by aten::wait This PR is built on top of #12925 Pull Request resolved: pytorch/pytorch#12976 Differential Revision: D10861483 Pulled By: highker fbshipit-source-id: 9e17926a625bc502fb12335ef9ce819f25776be7
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
Future now is an IValue. prim::Wait now is replaced by aten::wait
This PR is built on top of #12925