Skip to content

[refactor] move materialize_as_graph to _higher_order_ops/utils.py #154070

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

Conversation

@ydwu4 ydwu4 requested a review from zou3519 as a code owner May 21, 2025 21:51
Copy link

pytorch-bot bot commented May 21, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit 9e7f510 with merge base d865b78 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@@ -969,6 +972,36 @@ def call_op(op: Union[OpOverload, HopInstance], args, kwargs):
return op(*bound_args, **bound_kwargs)


def materialize_as_graph(
fn: Callable,
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is a bare callable, please add some typing support here for return value and input params with ParamSpec?

@ydwu4
Copy link
Contributor Author

ydwu4 commented May 30, 2025

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label May 30, 2025
@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

iupaikov-amd pushed a commit to ROCm/pytorch that referenced this pull request Jun 4, 2025
@github-actions github-actions bot deleted the gh/ydwu4/248/head branch July 2, 2025 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/trunk Trigger trunk jobs on your pull request Merged topic: not user facing topic category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants