Repository navigation
Conversation
Attention! native_functions.yaml was changedIf 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. |
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/195592
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 4143e8c with merge base e0942cc ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@pytorchbot merge -f "Lint + MPS 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 |
Using `c10:metal::cast_to<bool>` primitive to have consistent behavior for complex numbers, which fixes bug in MPSGraph implementation when op was called for complex types (previously only real part were checked, not complex value is truthy when either real or complex parts are nonzero) Pull Request resolved: pytorch#195592 Approved by: https://github.com/Skylion007
That is just a binary op using all the existing binary iterator machinery plus `c10::metal::pow` functor, yields 2x speedups on small tensors, on part on large ones `pow_Scalar_Tensor` still must be a separate dispatch, as unified machinery converts Double to float tensors Allows one to remove some xfails where MPSGraph handling of ineger powers diverges and remove complex xfails (although with a small tolerance adjustement, because Metal and host triage functions slightly differ) Also remove some non-relevant functions from UNSUPPORTED_COMPLEX_OPS list Pull Request resolved: #195585 Approved by: https://github.com/Skylion007, https://github.com/Isalia20 ghstack dependencies: #195592
Using `c10:metal::cast_to<bool>` primitive to have consistent behavior for complex numbers, which fixes bug in MPSGraph implementation when op was called for complex types (previously only real part were checked, not complex value is truthy when either real or complex parts are nonzero) Pull Request resolved: pytorch#195592 Approved by: https://github.com/Skylion007
That is just a binary op using all the existing binary iterator machinery plus `c10::metal::pow` functor, yields 2x speedups on small tensors, on part on large ones `pow_Scalar_Tensor` still must be a separate dispatch, as unified machinery converts Double to float tensors Allows one to remove some xfails where MPSGraph handling of ineger powers diverges and remove complex xfails (although with a small tolerance adjustement, because Metal and host triage functions slightly differ) Also remove some non-relevant functions from UNSUPPORTED_COMPLEX_OPS list Pull Request resolved: pytorch#195585 Approved by: https://github.com/Skylion007, https://github.com/Isalia20 ghstack dependencies: pytorch#195592
Stack from ghstack (oldest at bottom):
pow_Tensor_Tensor.outto Metal #195585Using
c10:metal::cast_to<bool>primitive to have consistent behavior for complex numbers, which fixes bug in MPSGraph implementation when op was called for complex types (previously only real part were checked, not complex value is truthy when either real or complex parts are nonzero)