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

[quantization] Replace special characters in name with underscore in prepare_pt2e #95488

Closed
wants to merge 1 commit into from

Conversation

ydwu4
Copy link
Contributor

@ydwu4 ydwu4 commented Feb 24, 2023

#94945 causes a internal test failure. The root cause is that during second tracing, the scope path we construct is not a valid attribute name due to the existence of special characters such as "()[],". We replace all of them with underscore here.

@pytorch-bot
Copy link

pytorch-bot bot commented Feb 24, 2023

🔗 Helpful Links

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

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

✅ No Failures

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

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

@github-actions github-actions bot added the release notes: quantization release notes category label Feb 24, 2023
@ydwu4 ydwu4 changed the title Replace special characters in name with underscore [quantization] Replace special characters in name with underscore in prepare_pt2e Feb 24, 2023
@zhxchen17
Copy link
Contributor

dumb question: what if we have two scope path like

abcabc()

and

abcabc[]

does this mean we will map them to the same scope path abcabc__?

@ydwu4
Copy link
Contributor Author

ydwu4 commented Mar 21, 2023

discarded as test is fixed internally.

@ydwu4 ydwu4 closed this Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants