Make InternalModel and Resnet work with rexportable flow#106676
Make InternalModel and Resnet work with rexportable flow#106676tugsbayasgalan wants to merge 1 commit intopytorch:mainfrom
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/106676
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ✅ 2 Unrelated FailuresAs of commit 7206b23: UNSTABLE - The following jobs failed but were likely due to flakiness present on trunk and has been marked as unstable:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
This pull request was exported from Phabricator. Differential Revision: D47890878 |
1b537a5 to
ac5ea9c
Compare
|
This pull request was exported from Phabricator. Differential Revision: D47890878 |
ac5ea9c to
adf4e1e
Compare
|
This pull request was exported from Phabricator. Differential Revision: D47890878 |
adf4e1e to
ea3f8af
Compare
|
This pull request was exported from Phabricator. Differential Revision: D47890878 |
1 similar comment
|
This pull request was exported from Phabricator. Differential Revision: D47890878 |
ea3f8af to
73bf81e
Compare
There was a problem hiding this comment.
can you add some docs about plans for this API
73bf81e to
1d6b692
Compare
|
This pull request was exported from Phabricator. Differential Revision: D47890878 |
1d6b692 to
db9096d
Compare
|
This pull request was exported from Phabricator. Differential Revision: D47890878 |
db9096d to
5265c97
Compare
|
This pull request was exported from Phabricator. Differential Revision: D47890878 |
5265c97 to
49ad872
Compare
|
This pull request was exported from Phabricator. Differential Revision: D47890878 |
49ad872 to
879711c
Compare
|
This pull request was exported from Phabricator. Differential Revision: D47890878 |
Test Plan: CI Differential Revision: D47890878 fbshipit-source-id: 50f0e12f60f6a37dab5e30d22122882594fd6227
|
This pull request was exported from Phabricator. Differential Revision: D47890878 |
879711c to
7206b23
Compare
jerryzh168
left a comment
There was a problem hiding this comment.
quant changes looks good to me, do you need review from some compiler people as well?
Sounds good! I will merge after I get review from Zhengxu. |
|
@pytorchbot merge (Initiating merge automatically since Phabricator Diff has merged) |
Merge startedYour 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 |
) Summary: Internal model and Resnet uses "re-export" flow now. Also did some refactoring to make the code little cleaner Some changes for OSS: 1. Correctly use the "cached" fake tensors so that static symbols are still resolved to static 2. Change logic in PassBase to allocate static shapes for parameters 3. Add "is_torch_exported" tag to every node to make it survive during various graph transformations. 4. Added experimental wrapper API for quantization team to get pre_dispatch=True graph. Note that it doesn't actually do that right now. But we plan to switch soon. Test Plan: CI Differential Revision: D47890878 Pull Request resolved: pytorch#106676 Approved by: https://github.com/jerryzh168
Summary: Internal model and Resnet uses "re-export" flow now. Also did some refactoring to make the code little cleaner
Some changes for OSS:
Test Plan: CI
Differential Revision: D47890878