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

Refractor export code for non/strict path #126354

Closed
wants to merge 1 commit into from
Closed

Conversation

jiashenC
Copy link
Contributor

  • Remove redundant code
  • Move strict and non-strict export code to their own functions

Copy link

pytorch-bot bot commented May 15, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/126354

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 New Failure

As of commit 76dc1d2 with merge base d74c89f (image):

NEW FAILURE - The following job has failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

Copy link
Contributor

@angelayi angelayi left a comment

Choose a reason for hiding this comment

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

looks like a good start!

with _wrap_submodules(
wrapped_mod, new_preserved_call_signatures, module_call_specs
):
gm, sig = aot_export(wrapped_mod, args, kwargs=kwargs, **flags)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you can move the log after this statement.

Comment on lines +1420 to +1421
if strict:
log.debug("Exported program from AOTAutograd:\n%s", exported_program)
Copy link
Contributor

Choose a reason for hiding this comment

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

This log is invalid now. Instead can we put a log at the comment I put above?

torch/export/_trace.py Show resolved Hide resolved
@jiashenC jiashenC closed this May 16, 2024
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.

None yet

2 participants