Skip to content

fixes #156701 #159715

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

fixes #156701 #159715

wants to merge 4 commits into from

Conversation

nouranali
Copy link
Contributor

@nouranali nouranali commented Aug 2, 2025

Copy link

pytorch-bot bot commented Aug 2, 2025

🔗 Helpful Links

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

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:

✅ No Failures

As of commit a20239b with merge base 09e5a93 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@nouranali nouranali changed the title solves #156701 fixes #156701 Aug 2, 2025
Copy link
Contributor

github-actions bot commented Aug 2, 2025

Attention! native_functions.yaml was changed

If you are adding a new function or defaulted argument to native_functions.yaml, you cannot use it from pre-existing Python frontend code until our FC window passes (two weeks). Split your PR into two PRs, one which adds the new C++ functionality, and one that makes use of it from Python, and land them two weeks apart. See https://github.com/pytorch/pytorch/wiki/PyTorch's-Python-Frontend-Backward-and-Forward-Compatibility-Policy#forwards-compatibility-fc for more info.


Caused by:

@nouranali
Copy link
Contributor Author

@facebook-github-bot

return a + b

# Test 2: Deterministic behavior using generator
def f_with_generator(x):
Copy link
Contributor

Choose a reason for hiding this comment

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

Hello, this method seems not invoked in this test. :D

@nouranali
Copy link
Contributor Author

@pytorchbot label "topic: not user facing"

@pytorch-bot pytorch-bot bot added the topic: not user facing topic category label Aug 5, 2025
@ezyang
Copy link
Contributor

ezyang commented Aug 6, 2025

This makes me nervous for BC purposes, I think many of our generator overloads have dedicated generator overloads and that would be safer

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.

Add generator argument to torch.rand_like
5 participants