Skip to content

make iter PT2 compatible #3253

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

csmiler
Copy link

@csmiler csmiler commented Oct 17, 2024

Summary: Use int and dynamic condition is not compatible with PT2 compile. Fixing it by using a cpu tensor and sync at the first forward. Need to wrap it with is_torchdynamo_compiling, PT2 happens at 3rd iteration according to Microve

Differential Revision: D64510142

Summary: Use `int` and dynamic condition is not compatible with PT2 compile. Fixing it by using a cpu tensor and sync at the first forward. Need to wrap it with `is_torchdynamo_compiling`, PT2 happens at 3rd iteration according to Microve

Differential Revision: D64510142
@facebook-github-bot
Copy link
Contributor

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

Copy link

netlify bot commented Oct 17, 2024

Deploy Preview for pytorch-fbgemm-docs ready!

Name Link
🔨 Latest commit eb3801a
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-fbgemm-docs/deploys/67118d9c0ceb3600087c62d2
😎 Deploy Preview https://deploy-preview-3253--pytorch-fbgemm-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 25cff5c.

q10 pushed a commit to q10/FBGEMM that referenced this pull request Apr 10, 2025
Summary:
X-link: pytorch#3253

Pull Request resolved: facebookresearch/FBGEMM#353

Use `int` and dynamic condition is not compatible with PT2 compile. Fixing it by using a cpu tensor and sync at the first forward. Need to wrap it with `is_torchdynamo_compiling`, PT2 happens at 3rd iteration according to Microve

Reviewed By: Microve

Differential Revision: D64510142

fbshipit-source-id: 5ba866b258df2d3d1d6555653993de59ba9110cc
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.

2 participants