Skip to content

Conversation

@azahed98
Copy link
Contributor

@azahed98 azahed98 commented Aug 21, 2025

@pytorch-bot
Copy link

pytorch-bot bot commented Aug 21, 2025

🔗 Helpful Links

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

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

⏳ No Failures, 1 Pending

As of commit fad538a with merge base 7006fd0 (image):
💚 Looks good so far! There are no failures yet. 💚

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

Copy link
Contributor

@StrongerXi StrongerXi left a comment

Choose a reason for hiding this comment

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

Thanks!

):
# If it's either tensor or subclass with default torch_dispatch
# (they might override torch_function), we can always trace into them.
# For non-default torch_dispatch, we have more requirements.
Copy link
Contributor

Choose a reason for hiding this comment

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

While you are here, maybe remove this comment as well, it's confusing, it was meant to go before the is_traceable_wrapper_subclass(value) check, as that check encodes the "more requirements".

The comment above this basically elaborates on the type(value).__torch_dispatch__ is torch.Tensor.__torch_dispatch__ check.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sg, removed. Will merge after CI is green.

@azahed98
Copy link
Contributor Author

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Aug 22, 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

markc-614 pushed a commit to markc-614/pytorch that referenced this pull request Sep 17, 2025
Removes a redundant if statement. Does not impact logic so no test changes needed.

Pull Request resolved: pytorch#161215
Approved by: https://github.com/StrongerXi
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