8000 Add autograd hook for python rpc call by zhaojuanmao · Pull Request #28211 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

Add autograd hook for python rpc call #28211

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

zhaojuanmao
Copy link
Contributor
@zhaojuanmao zhaojuanmao commented Oct 17, 2019

Stack from ghstack:

  1. currently if autograd context is valid, even tensors do not require grads and grads function are not attached.
    it still send rpc with autograd meta. This is not ideal.
    This diff makes some change to make sure rpc with autograd meta is sent only if autograd context is valid and tensors require grads

  2. meanwhile create a utiliy to attach autograd info and functions as needed

  3. add autograd send/recv functions for python rpc call

  4. make changes to support nested python rpc calls

  5. disallow nested dist autograd context (was landed in Distributed Autograd - FAST mode backward pass implementation. #27022)

Differential Revision: D17819153

1. currently if autograd context is valid, even tensors do not require grads and grads function are not attached.
it still send rpc with autograd meta. This is not ideal.
This diff makes some change to make sure rpc with autograd meta is sent only if autograd context is valid and tensors require grads

2. meanwhile create a utiliy to attach autograd info and functions as needed

3. add autograd send/recv functions for python rpc call

4. make changes to support nested python rpc calls

5. disallow nested dist autograd context (was landed in #27022)

Differential Revision: [D17819153](https://our.internmc.facebook.com/intern/diff/D17819153/)

[ghstack-poisoned]
zhaojuanmao added a commit that referenced this pull request Oct 17, 2019
1. currently if autograd context is valid, even tensors do not require grads and grads function are not attached.
it still send rpc with autograd meta. This is not ideal.
This diff makes some change to make sure rpc with autograd meta is sent only if autograd context is valid and tensors require grads

2. meanwhile create a utiliy to attach autograd info and functions as needed

3. add autograd send/recv functions for python rpc call

4. make changes to support nested python rpc calls

5. disallow nested dist autograd context (was landed in #27022)

Differential Revision: [D17819153](https://our.internmc.facebook.com/intern/diff/D17819153/)

ghstack-source-id: 92090804
Pull Request resolved: #28211
@zhaojuanmao
Copy link
Contributor Author

abandon this, duplicate of #27576. it is incorrectly exported

@facebook-github-bot facebook-github-bot deleted the gh/zhaojuanmao/11/head branch November 16, 2019 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0