Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

FakeTensor SymInt caching fixes #154390

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

Closed
wants to merge 1 commit into from
Closed

Conversation

aorenste
Copy link
Contributor

@aorenste aorenste commented May 27, 2025

Summary:
Two fixes:

  1. In the FakeTensor crosscheck assertion it should be checking that for SymInts the SymNode is the same object, not the SymInt itself.
  2. If constructing the result tensor results in a data-dependent error then bypass the cache.

Test Plan: Unit tests pass

Differential Revision: D75421864

cc @ezyang @SherlockNoMad @EikanWang @jgong5 @wenzhe-nrv @voznesenskym @penguinwu @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @jiayisunx @ipiszy @chenyang78 @kadeng @muchulee8 @amjames @chauhang @aakhundov

Copy link

pytorch-bot bot commented May 27, 2025

🔗 Helpful Links

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

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

❌ 1 Cancelled Job, 1 Unrelated Failure

As of commit 5621b72 with merge base 0a7eef1 (image):

CANCELLED JOB - The following job was cancelled. Please retry:

BROKEN TRUNK - The following job failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

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

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D75421864

Summary:

Two fixes:
1. In the FakeTensor crosscheck assertion it should be checking that for SymInts the SymNode is the same object, not the SymInt itself.
2. If constructing the result tensor results in a data-dependent error then bypass the cache.

Test Plan: Unit tests pass

Differential Revision: D75421864
@aorenste aorenste force-pushed the export-D75421864 branch from ad72379 to 5621b72 Compare May 27, 2025 14:12
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D75421864

@ezyang
Copy link
Contributor

ezyang commented Jun 6, 2025

Test?

@aorenste aorenste closed this Jun 11, 2025
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.

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.