-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Add Tensor.is_cpu #78887
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
Add Tensor.is_cpu #78887
Conversation
🔗 Helpful links
✅ No Failures (0 Pending)As of commit 8025929 (more details on the Dr. CI page): Expand to see more💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
@pytorchbot merge |
@pytorchbot successfully started a merge job. Check the current status here |
Hey @vitrioil. |
Summary: Fixes #76872 Not sure if this is also required. https://github.com/pytorch/pytorch/blob/ac8c6d09d1ce0a239f97473ebc01f1fe0ec87dcd/torch/csrc/tensor/python_tensor.cpp#L146 Pull Request resolved: #78887 Approved by: https://github.com/ezyang Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/ebb7f424b82d5b19d995e98ba7166a197c75fb59 Reviewed By: osalpekar Differential Revision: D36959262 Pulled By: osalpekar fbshipit-source-id: 48b92bdfa6b11df84d78aab62db9ccb1d3efab40
Fixes #76872
Not sure if this is also required.
pytorch/torch/csrc/tensor/python_tensor.cpp
Line 146 in ac8c6d0