Skip to content
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

Document example of Proxy use #50583

Closed
wants to merge 5 commits into from

Conversation

ansley
Copy link

@ansley ansley commented Jan 15, 2021

Stack from ghstack:

Differential Revision: D26010501

[ghstack-poisoned]
ansley pushed a commit that referenced this pull request Jan 15, 2021
ghstack-source-id: 4bdbd9781c194f75e707be90cd3dbd2c94779719
Pull Request resolved: #50583
ansley pushed a commit that referenced this pull request Jan 15, 2021
ghstack-source-id: 763f7dd09ebae474e84805be54dc3bd2280aa8db
Pull Request resolved: #50583
@ansley ansley requested a review from jamesr66a January 15, 2021 18:58
Copy link
Collaborator

@jamesr66a jamesr66a left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, though I think this emphasizes a "boundary case" I guess I would call it, where you're tracing an entire function. It might be good to show also show using Proxy's to inline a given function into another function, or to show using Proxies within some metaprogramming code to emit operations (i.e. not just tracing through straightline code)

torch/fx/examples/create_graph_using_proxy.py Outdated Show resolved Hide resolved
ansley pushed a commit that referenced this pull request Jan 21, 2021
ghstack-source-id: 66a8c17645b9ae3e1be91c933691f8614d1b8738
Pull Request resolved: #50583
@ansley ansley requested a review from jamesr66a January 22, 2021 00:08
Copy link
Collaborator

@jamesr66a jamesr66a left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just some small stuff then we should be good to go

torch/fx/examples/inline_function.py Outdated Show resolved Hide resolved
torch/fx/examples/inline_function.py Outdated Show resolved Hide resolved
torch/fx/examples/inline_function.py Outdated Show resolved Hide resolved
torch/fx/examples/wrap_output_dynamically.py Outdated Show resolved Hide resolved
ansley pushed a commit that referenced this pull request Jan 22, 2021
ghstack-source-id: c25e0d3300ca648892fa3964cc8c486a516df0c2
Pull Request resolved: #50583
ansley pushed a commit that referenced this pull request Jan 22, 2021
ghstack-source-id: 278e7e57194e81464785334f08d7db8c44264f1e
Pull Request resolved: #50583
@facebook-github-bot
Copy link
Contributor

@ansley merged this pull request in d5dc65a.

@facebook-github-bot facebook-github-bot deleted the gh/ansleyadelaide/33/head branch January 26, 2021 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants