Skip to content

allow check_input_alias_and_mutation_return_outputs to take FunctionalTensor input #154648

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 4 commits into from

Conversation

Copy link

pytorch-bot bot commented May 29, 2025

🔗 Helpful Links

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

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

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

❌ 38 New Failures, 1 Unrelated Failure

As of commit 24d2700 with merge base 1258aac (image):

NEW FAILURES - The following jobs have failed:

UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:

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

ydwu4 added 2 commits May 29, 2025 11:56
…e FunctionalTensor input"

[ghstack-poisoned]
…e FunctionalTensor input"

[ghstack-poisoned]
@ydwu4 ydwu4 added the topic: not user facing topic category label May 29, 2025
Comment on lines +97 to +103
(
_,
_,
_,
mutated_inputs,
outputs,
) = check_input_alias_and_mutation_return_outputs(gm, operands)
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you have some explanation about why this is better? I don't have a good sense of what we're doing here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is required by cond tests that does make_fx(torch.func.functionalize(cond)), where we want to gen_schema for cond. Yeah, the PR lacks some context. I'll merge it with the auto_functionalize cond pr.

…e FunctionalTensor input"

[ghstack-poisoned]
@ydwu4
Copy link
Contributor Author

ydwu4 commented Jun 10, 2025

Not needed anymore

@ydwu4 ydwu4 closed this Jun 10, 2025
@github-actions github-actions bot deleted the gh/ydwu4/256/head branch July 13, 2025 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants