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

[Fix]: TSConverter errors on dynamic shapes #129087

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Conversation

jiashenC
Copy link
Contributor

@jiashenC jiashenC commented Jun 19, 2024

Description

Enable dynamic shape support during conversion.

  • Real tensor retracing.
  • Dynamic shape refinement with initial very coarse-grained shape information.
  • Fix data copy inside meta_utils.py for unbacked fake tensors.

Test Plan

Add test cases that create dynamic shapes.

  • pytest test/export/test_converter.py -s -k test_ts2ep_dynamic_shape

cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames

Copy link

pytorch-bot bot commented Jun 19, 2024

🔗 Helpful Links

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

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

❌ 11 New Failures

As of commit aac935d with merge base 67e22d6 (image):

NEW FAILURES - The following jobs have failed:

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

@jiashenC jiashenC marked this pull request as ready for review July 16, 2024 17:35
@@ -1448,7 +1455,7 @@ def is_c_of_r(complex_dtype, real_dtype):
device="meta",
)
)
if self.copy_data:
if self.copy_data and not has_symbolic_size(t.size):
Copy link
Contributor

Choose a reason for hiding this comment

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

Is @pianpwk the right person to confirm this is valid?

Copy link
Contributor

Choose a reason for hiding this comment

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

definitely not lol

Copy link
Contributor

Choose a reason for hiding this comment

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

could you make a separate PR with the changes in this file, and include a test case and have Ed take a look?

@jiashenC jiashenC requested a review from ydwu4 as a code owner July 22, 2024 18:05
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

3 participants