- Notifications
You must be signed in to change notification settings - Fork26.3k
Lettensor_a.new_tensor() be ontensor_a.device by default#144958
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
pytorch-botbot commentedJan 16, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
🔗 Helpful Links🧪 See artifacts and rendered test results athud.pytorch.org/pr/144958
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (2 Unrelated Failures)As of commit8868a78 with merge based2a77f4 ( FLAKY - The following jobs failed but were likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
oraluben commentedJan 16, 2025
@pytorchbot label "topic: bc breaking" |
00bcb32 to101652bCompareba615d3 tobfdaeabCompare
ezyang left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Nice catch
ezyang commentedJan 24, 2025
@pytorchbot merge |
pytorchmergebot commentedJan 24, 2025
Merge failedReason: This PR needs a If not, please add the To add a label, you can comment to pytorchbot, for example For more information, see Details for Dev Infra teamRaised byworkflow job |
ezyang commentedJan 24, 2025
@pytorchbot merge |
pytorchmergebot commentedJan 24, 2025
Merge failedReason: This PR needs a If not, please add the To add a label, you can comment to pytorchbot, for example For more information, see Details for Dev Infra teamRaised byworkflow job |
ezyang commentedJan 24, 2025
@pytorchbot merge |
pytorchmergebot commentedJan 24, 2025
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in thewiki. Questions? Feedback? Please reach out to thePyTorch DevX Team |
…ch#144958)Fixespytorch#144957Closespytorch#73838 cc@albanD@ezyangCurrently, `tensor_a.new_tensor()` will return a on-cpu tensor no matter where is `tensor_a`. This differs from the document and is a side-effect ofpytorch#41984.Seepytorch#144957 how current logic breaks dynamo.This PR restore the documented behavior and add tests for `new_tensor`.Pull Requestresolved:pytorch#144958Approved by:https://github.com/ezyang
Uh oh!
There was an error while loading.Please reload this page.
Fixes#144957
Closes#73838 cc@albanD@ezyang
Currently,
tensor_a.new_tensor()will return a on-cpu tensor no matter where istensor_a. This differs from the document and is a side-effect of#41984.See#144957 how current logic breaks dynamo.
This PR restore the documented behavior and add tests for
new_tensor.