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

[ONNX] Introduce 'diagnostics' to 'dynamo_export' api #99668

Closed
wants to merge 13 commits into from

Conversation

BowenBao
Copy link
Collaborator

@BowenBao BowenBao commented Apr 20, 2023

Stack from ghstack (oldest at bottom):

Summary

  • Introduce DiagnosticContext to torch.onnx.dynamo_export.
  • Remove DiagnosticEngine in preparations to update 'diagnostics' in dynamo_export to drop dependencies on global diagnostic context. No plans to update torch.onnx.export diagnostics.

Next steps

@pytorch-bot
Copy link

pytorch-bot bot commented Apr 20, 2023

🔗 Helpful Links

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

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

❗ 2 Active SEVs

There are 2 currently active SEVs. If your PR is affected, please view them below:

❌ 1 New Failure

As of commit e857b37:

NEW FAILURE - The following job has failed:

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

@pytorch-bot pytorch-bot bot added release notes: onnx torch.onnx related changes that should show up in the release notes labels Apr 20, 2023
…ort' api"


Summary
* Introduce `DiagnosticContext` to `torch.onnx.dynamo_export`. 
* Remove `DiagnosticEngine` in preparations to update 'diagnostics' in `dynamo_export` to drop dependencies on global diagnostic context. No plans to update `torch.onnx.export` diagnostics.

Next steps
* Separate `torch.onnx.export` diagnostics and `torch.onnx.dynamo_export` diagnostics.
* Drop dependencies on global diagnostic context.
* Replace 'print's with 'logger.log'.

[ghstack-poisoned]
BowenBao added a commit that referenced this pull request Apr 20, 2023
ghstack-source-id: 75cfe1c6e1e4265c01d965003d52079cebb01cfd
Pull Request resolved: #99668
Summary
* Introduce `DiagnosticContext` to `torch.onnx.dynamo_export`. 
* Remove `DiagnosticEngine` in preparations to update 'diagnostics' in `dynamo_export` to drop dependencies on global diagnostic context. No plans to update `torch.onnx.export` diagnostics.

Next steps
* Separate `torch.onnx.export` diagnostics and `torch.onnx.dynamo_export` diagnostics.
* Drop dependencies on global diagnostic context.
* Replace 'print's with 'logger.log'.

[ghstack-poisoned]
BowenBao added a commit that referenced this pull request Apr 21, 2023
ghstack-source-id: a74cd67c2ba0a2ceaf762a7be5ed35735edbcebc
Pull Request resolved: #99668
…ynamo_export' api"


Summary
* Introduce `DiagnosticContext` to `torch.onnx.dynamo_export`. 
* Remove `DiagnosticEngine` in preparations to update 'diagnostics' in `dynamo_export` to drop dependencies on global diagnostic context. No plans to update `torch.onnx.export` diagnostics.

Next steps
* Separate `torch.onnx.export` diagnostics and `torch.onnx.dynamo_export` diagnostics.
* Drop dependencies on global diagnostic context.
* Replace 'print's with 'logger.log'.

[ghstack-poisoned]
Summary
* Introduce `DiagnosticContext` to `torch.onnx.dynamo_export`. 
* Remove `DiagnosticEngine` in preparations to update 'diagnostics' in `dynamo_export` to drop dependencies on global diagnostic context. No plans to update `torch.onnx.export` diagnostics.

Next steps
* Separate `torch.onnx.export` diagnostics and `torch.onnx.dynamo_export` diagnostics.
* Drop dependencies on global diagnostic context.
* Replace 'print's with 'logger.log'.

[ghstack-poisoned]
BowenBao added a commit that referenced this pull request Apr 21, 2023
ghstack-source-id: 0f244844f8dc6d0f623931e95c3910830a121210
Pull Request resolved: #99668
@BowenBao BowenBao marked this pull request as ready for review April 21, 2023 20:41
@BowenBao BowenBao requested a review from abock as a code owner April 21, 2023 20:41
@BowenBao BowenBao added module: onnx Related to torch.onnx topic: new features topic category labels Apr 21, 2023
Summary
* Introduce `DiagnosticContext` to `torch.onnx.dynamo_export`. 
* Remove `DiagnosticEngine` in preparations to update 'diagnostics' in `dynamo_export` to drop dependencies on global diagnostic context. No plans to update `torch.onnx.export` diagnostics.

Next steps
* Separate `torch.onnx.export` diagnostics and `torch.onnx.dynamo_export` diagnostics.
* Drop dependencies on global diagnostic context.
* Replace 'print's with 'logger.log'.

[ghstack-poisoned]
BowenBao added a commit that referenced this pull request Apr 24, 2023
ghstack-source-id: 0e8851dcd86cb97f6ab1bc8ce35bb078123412f4
Pull Request resolved: #99668
Summary
* Introduce `DiagnosticContext` to `torch.onnx.dynamo_export`. 
* Remove `DiagnosticEngine` in preparations to update 'diagnostics' in `dynamo_export` to drop dependencies on global diagnostic context. No plans to update `torch.onnx.export` diagnostics.

Next steps
* Separate `torch.onnx.export` diagnostics and `torch.onnx.dynamo_export` diagnostics.
* Drop dependencies on global diagnostic context.
* Replace 'print's with 'logger.log'.

[ghstack-poisoned]
Summary
* Introduce `DiagnosticContext` to `torch.onnx.dynamo_export`. 
* Remove `DiagnosticEngine` in preparations to update 'diagnostics' in `dynamo_export` to drop dependencies on global diagnostic context. No plans to update `torch.onnx.export` diagnostics.

Next steps
* Separate `torch.onnx.export` diagnostics and `torch.onnx.dynamo_export` diagnostics.
* Drop dependencies on global diagnostic context.
* Replace 'print's with 'logger.log'.

[ghstack-poisoned]
Summary
* Introduce `DiagnosticContext` to `torch.onnx.dynamo_export`. 
* Remove `DiagnosticEngine` in preparations to update 'diagnostics' in `dynamo_export` to drop dependencies on global diagnostic context. No plans to update `torch.onnx.export` diagnostics.

Next steps
* Separate `torch.onnx.export` diagnostics and `torch.onnx.dynamo_export` diagnostics.
* Drop dependencies on global diagnostic context.
* Replace 'print's with 'logger.log'.

[ghstack-poisoned]
Summary
* Introduce `DiagnosticContext` to `torch.onnx.dynamo_export`. 
* Remove `DiagnosticEngine` in preparations to update 'diagnostics' in `dynamo_export` to drop dependencies on global diagnostic context. No plans to update `torch.onnx.export` diagnostics.

Next steps
* Separate `torch.onnx.export` diagnostics and `torch.onnx.dynamo_export` diagnostics.
* Drop dependencies on global diagnostic context.
* Replace 'print's with 'logger.log'.

[ghstack-poisoned]
Summary
* Introduce `DiagnosticContext` to `torch.onnx.dynamo_export`. 
* Remove `DiagnosticEngine` in preparations to update 'diagnostics' in `dynamo_export` to drop dependencies on global diagnostic context. No plans to update `torch.onnx.export` diagnostics.

Next steps
* Separate `torch.onnx.export` diagnostics and `torch.onnx.dynamo_export` diagnostics.
* Drop dependencies on global diagnostic context.
* Replace 'print's with 'logger.log'.

[ghstack-poisoned]
@@ -193,7 +197,7 @@ def __enter__(self):
return self

def __exit__(self, exc_type, exc_val, exc_tb):
return True
return None
Copy link
Collaborator

Choose a reason for hiding this comment

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

What does this change? Just for my learning

Copy link
Contributor

Choose a reason for hiding this comment

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

Returning True will suppress the exception. None will allow it to propagate.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks!

@BowenBao BowenBao added the ciflow/trunk Trigger trunk jobs on your pull request label Apr 28, 2023
Summary
* Introduce `DiagnosticContext` to `torch.onnx.dynamo_export`. 
* Remove `DiagnosticEngine` in preparations to update 'diagnostics' in `dynamo_export` to drop dependencies on global diagnostic context. No plans to update `torch.onnx.export` diagnostics.

Next steps
* Separate `torch.onnx.export` diagnostics and `torch.onnx.dynamo_export` diagnostics.
* Drop dependencies on global diagnostic context. #100219
* Replace 'print's with 'logger.log'.

[ghstack-poisoned]
Summary
* Introduce `DiagnosticContext` to `torch.onnx.dynamo_export`. 
* Remove `DiagnosticEngine` in preparations to update 'diagnostics' in `dynamo_export` to drop dependencies on global diagnostic context. No plans to update `torch.onnx.export` diagnostics.

Next steps
* Separate `torch.onnx.export` diagnostics and `torch.onnx.dynamo_export` diagnostics.
* Drop dependencies on global diagnostic context. #100219
* Replace 'print's with 'logger.log'.

[ghstack-poisoned]
valentinandrei pushed a commit to valentinandrei/pytorch that referenced this pull request May 2, 2023
Summary
* Introduce `DiagnosticContext` to `torch.onnx.dynamo_export`.
* Remove `DiagnosticEngine` in preparations to update 'diagnostics' in `dynamo_export` to drop dependencies on global diagnostic context. No plans to update `torch.onnx.export` diagnostics.

Next steps
* Separate `torch.onnx.export` diagnostics and `torch.onnx.dynamo_export` diagnostics.
* Drop dependencies on global diagnostic context. pytorch#100219
* Replace 'print's with 'logger.log'.
Pull Request resolved: pytorch#99668
Approved by: https://github.com/justinchuby, https://github.com/abock
@facebook-github-bot facebook-github-bot deleted the gh/BowenBao/235/head branch June 8, 2023 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/trunk Trigger trunk jobs on your pull request Merged module: onnx Related to torch.onnx open source release notes: onnx torch.onnx related changes that should show up in the release notes topic: new features topic category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants