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] Fix scalar_type_analysis metadata for copied constant #86716

Closed
wants to merge 2 commits into from

Conversation

BowenBao
Copy link
Collaborator

@BowenBao BowenBao commented Oct 11, 2022

Stack from ghstack (oldest at bottom):

Fix the source of metadata for copied constant. Since the constant is being implicitly casted,
it makes more sense to assign code location and etc with the user node.
This issue was discovered in #86627. This PR also adds unit test coverage for scope
information of nodes when they are altered by CSE and related passes.

@BowenBao BowenBao requested a review from abock as a code owner October 11, 2022 19:09
@pytorch-bot
Copy link

pytorch-bot bot commented Oct 11, 2022

🔗 Helpful Links

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

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

✅ No Failures

As of commit 3ff829b:
💚 Looks good so far! There are no failures yet. 💚

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

@pytorch-bot pytorch-bot bot added the release notes: onnx torch.onnx related changes that should show up in the release notes label Oct 11, 2022
@BowenBao BowenBao added module: onnx Related to torch.onnx topic: bug fixes topic category labels Oct 11, 2022
Copy link
Collaborator

@justinchuby justinchuby left a comment

Choose a reason for hiding this comment

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

just a nit

test/onnx/test_utility_funs.py Outdated Show resolved Hide resolved
Fix the source of metadata for copied constant. Since the constant is being implicitly casted,
it makes more sense to assign code location and etc with the user node.
This issue was discovered in #86627. This PR also adds unit test coverage for scope
information of nodes when they are altered by CSE and related passes.


[ghstack-poisoned]
@BowenBao BowenBao added this to the 1.13.0 milestone Oct 12, 2022
Copy link
Collaborator

@thiagocrepaldi thiagocrepaldi left a comment

Choose a reason for hiding this comment

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

LGTM

test/onnx/test_utility_funs.py Show resolved Hide resolved
@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 12, 2022
@BowenBao BowenBao added the onnx-needs-import This PR is related to ONNX, but touches files outside of merge rule patterns, and hence needs import label Oct 13, 2022
@malfet
Copy link
Contributor

malfet commented Oct 13, 2022

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@BowenBao BowenBao mentioned this pull request Oct 13, 2022
28 tasks
BowenBao added a commit that referenced this pull request Oct 13, 2022
Fix the source of metadata for copied constant. Since the constant is being implicitly casted,
it makes more sense to assign code location and etc with the user node.
This issue was discovered in #86627. This PR also adds unit test coverage for scope
information of nodes when they are altered by CSE and related passes.

Pull Request resolved: #86716
Approved by: https://github.com/thiagocrepaldi, https://github.com/malfet
malfet pushed a commit that referenced this pull request Oct 18, 2022
…#86923)

Fix the source of metadata for copied constant. Since the constant is being implicitly casted,
it makes more sense to assign code location and etc with the user node.
This issue was discovered in #86627. This PR also adds unit test coverage for scope
information of nodes when they are altered by CSE and related passes.

Pull Request resolved: #86716
Approved by: https://github.com/thiagocrepaldi, https://github.com/malfet
@facebook-github-bot facebook-github-bot deleted the gh/BowenBao/165/head branch June 8, 2023 14:23
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 onnx-needs-import This PR is related to ONNX, but touches files outside of merge rule patterns, and hence needs import open source release notes: onnx torch.onnx related changes that should show up in the release notes topic: bug fixes topic category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants