Skip to content

fix: Reorganize Dynamo directory + backends #1928

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

Merged
merged 2 commits into from
May 18, 2023

Conversation

gs-olive
Copy link
Collaborator

@gs-olive gs-olive commented May 17, 2023

Description

  • Rename key backends to establish default backend and optional alternatives
  • Update function headers and docstrings, as well as key imports
  • Rename torch_compile folder to backend in accordance with torch.compile terminology
  • Update references throughout codebase
  • Specify certain functions as private/helper via underscore

Type of change

  • Code Restructuring

Checklist:

  • [ x ] My code follows the style guidelines of this project (You can use the linters)
  • [ x ] I have performed a self-review of my own code
  • [ x ] I have commented my code, particularly in hard-to-understand areas and hacks
  • [ x ] I have made corresponding changes to the documentation
  • [ x ] I have added tests to verify my fix or my feature
  • [ x ] New and existing unit tests pass locally with my changes
  • [ x ] I have added the relevant labels to my PR in so that relevant reviewers are notified

@gs-olive gs-olive self-assigned this May 17, 2023
@github-actions github-actions bot added the component: api [Python] Issues re: Python API label May 17, 2023
@gs-olive gs-olive force-pushed the dynamo_refactoring branch from 503992a to 7d658d6 Compare May 17, 2023 21:21
@@ -72,12 +82,12 @@ def fx_dynamo_backend(
return gm.forward


def compile_module(
def _compile_module(
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added "_" to name, as the function is intended only for internal/helper use (requires a pre-traced FX GraphModule)

@gs-olive gs-olive force-pushed the dynamo_refactoring branch 2 times, most recently from 2eaf7ca to 05f2812 Compare May 18, 2023 00:25
- Rename key backends to establish default backend and optional
alternatives
- Update function headers and docstrings, as well as key imports
- Rename `torch_compile` folder to `backends` in accordance with
`torch.compile` terminology
- Update references throughout codebase
- Specify certain functions as private/helper via underscore
- Update tests and defaults to match expected number of engines to
generate
@gs-olive gs-olive force-pushed the dynamo_refactoring branch from 05f2812 to 608c3ed Compare May 18, 2023 01:20
@gs-olive gs-olive merged commit cf1f637 into pytorch:main May 18, 2023
@gs-olive gs-olive deleted the dynamo_refactoring branch May 18, 2023 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants