trunk/cf471dc229ebb2d98793f00f3150c370872b6cb8: [BE][MPS] Migrate remaining logical ops to Metal (#195592)
- PyTorch: 399 events in the last 90 days
- PyTorch: 396th Release in the last 90 days
- Previous: earlier the same day · ciflow/torchtitan/195649: [mtia_compiler][Pytorch] Support stream APIs in torch.compile
What happened
Using c10:metal::cast_to 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: #195592 Approved by: https://github.com/Skylion007
Summary assembled by rule from the sources below