Skip to content

[wip] #2052

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

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft

[wip] #2052

wants to merge 8 commits into from

Conversation

beverlylytle
Copy link
Collaborator

@beverlylytle beverlylytle commented May 9, 2025

As a follow-up to the introduction of using update_aliases to support in-place operations, this PR aims to make this approach the default instead of the functionalization approach.

@beverlylytle
Copy link
Collaborator Author

After a pause to work on other issues, I will now focus on finishing this PR.

@@ -54,13 +55,36 @@ def _involves_viewed_args(bsym, viewed):
return any(isinstance(p, TensorProxy) and variableify(p) in viewed for p in bsym.flat_proxy_args)


def _add_output_to_setitem(trace: Trace) -> Trace:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

setitem_ returns no output, and so there were dataflow issues around update_aliases being called on the input to setitem_ rather than the output of the subsymbols.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant