-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[BE][MPS] Use Tensor->TensorBase in OperationUtils.h
#137647
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
Conversation
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/137647
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit aff526d with merge base de4c2a3 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
[ghstack-poisoned]
[ghstack-poisoned]
TensorBase rather than Tensor for OpUtils.hTensor->TensorBase in OperationUtils.h
As for the most part those helper method need access to only base class methods [ghstack-poisoned]
As for the most part those helper method need access to only base class methods [ghstack-poisoned]
albanD
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.
really cool!
|
@pytorchbot merge -f "MPS + Lint are green" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Requested in #77764 (comment) Copy-n-paste kernel implementation from https://github.com/pytorch/pytorch/blob/13cf8360d87306ab3242e827eb662682cff17a19/aten/src/ATen/native/cuda/TensorFactories.cu#L92 though use `float` instead of `double` for square root computation Pull Request resolved: #137648 Approved by: https://github.com/Skylion007, https://github.com/albanD ghstack dependencies: #137601, #137647
Stack from ghstack (oldest at bottom):
tri[lu]_indices#137648Tensor->TensorBasein OperationUtils.h #137647As for the most part those helper method need access to only base class methods.
Also replace spurious
at::namespace prefixes, i.e.at::Tensor->Tensor