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] Set 'Generic[Diagnostic]' as base class for 'DiagnosticContext' #107165

Closed
wants to merge 4 commits into from

Conversation

BowenBao
Copy link
Collaborator

@BowenBao BowenBao commented Aug 14, 2023

Allows type checking for 'Diagnostic' argument when calling 'context.log'.

[ghstack-poisoned]
@pytorch-bot pytorch-bot bot added the release notes: onnx torch.onnx related changes that should show up in the release notes label Aug 14, 2023
@pytorch-bot
Copy link

pytorch-bot bot commented Aug 14, 2023

🔗 Helpful Links

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

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

⏳ No Failures, 2 Pending

As of commit 8045fb0 with merge base d8ad748 (image):
💚 Looks good so far! There are no failures yet. 💚

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

BowenBao added a commit that referenced this pull request Aug 14, 2023
Allows type checking for 'Diagnostic' argument when calling 'context.log'.

ghstack-source-id: a7803c2c5ee6ede41b5b84e43a9f3098dcc453a0
Pull Request resolved: #107165
…sticContext'"

Allows type checking for 'Diagnostic' argument when calling 'context.log'.

[ghstack-poisoned]
BowenBao added a commit that referenced this pull request Aug 14, 2023
Allows type checking for 'Diagnostic' argument when calling 'context.log'.

ghstack-source-id: 9dc9cb7a903dc58970286e4f60a5b29702c87a19
Pull Request resolved: #107165
@BowenBao BowenBao marked this pull request as ready for review August 14, 2023 22:14
@BowenBao BowenBao added the topic: improvements topic category label Aug 14, 2023
…sticContext'"


Allows overriding the `Diagnostic` type for DiagnosticContext and enable type checking.

[ghstack-poisoned]
BowenBao added a commit that referenced this pull request Aug 14, 2023
Allows type checking for 'Diagnostic' argument when calling 'context.log'.

ghstack-source-id: bd9c342d4a32924b1c3a1ddbdf893c87d5b8d9a4
Pull Request resolved: #107165
test/onnx/internal/test_diagnostics.py Outdated Show resolved Hide resolved
…sticContext'"


Allows overriding the `Diagnostic` type for DiagnosticContext and enable type checking.

[ghstack-poisoned]
BowenBao added a commit that referenced this pull request Aug 15, 2023
Allows type checking for 'Diagnostic' argument when calling 'context.log'.

ghstack-source-id: c662af361b56c7bdb299e226375445763fbc02b8
Pull Request resolved: #107165
@BowenBao BowenBao added the ciflow/trunk Trigger trunk jobs on your pull request label Aug 15, 2023
pytorchmergebot pushed a commit that referenced this pull request Aug 15, 2023
To not conflict with potential existing workaround or solution outside of exporter.
Latest huggingface/transformers main (>4.31) patches PyTorch PyTree with support over `ModelOutput` class.
`_PyTreeExtensionContext` is kept to support prior versions of transformers.
Pull Request resolved: #107245
Approved by: https://github.com/titaiwangms
ghstack dependencies: #106741, #107158, #107165
summerdo pushed a commit to summerdo/pytorch that referenced this pull request Aug 17, 2023
pytorch#107165)

Allows overriding the `Diagnostic` type for DiagnosticContext and enable type checking.
Pull Request resolved: pytorch#107165
Approved by: https://github.com/justinchuby, https://github.com/titaiwangms
ghstack dependencies: pytorch#106741, pytorch#107158
summerdo pushed a commit to summerdo/pytorch that referenced this pull request Aug 17, 2023
…107245)

To not conflict with potential existing workaround or solution outside of exporter.
Latest huggingface/transformers main (>4.31) patches PyTorch PyTree with support over `ModelOutput` class.
`_PyTreeExtensionContext` is kept to support prior versions of transformers.
Pull Request resolved: pytorch#107245
Approved by: https://github.com/titaiwangms
ghstack dependencies: pytorch#106741, pytorch#107158, pytorch#107165
@facebook-github-bot facebook-github-bot deleted the gh/BowenBao/286/head branch August 19, 2023 14:16
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 open source release notes: onnx torch.onnx related changes that should show up in the release notes topic: improvements topic category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants