[MPS] fix float32 error on mps, in linalg.matrix_rank and linalg.pinv (#114771)

Fixes #114285

(However, still have NotImplementedError
```NotImplementedError: The operator 'aten::_linalg_svd.U' is not currently implemented for the MPS device. If you want this op to be added in priority during the prototype phase of this feature, please comment on https://github.com/pytorch/pytorch/issues/77764. As a temporary fix, you can set the environment variable `PYTORCH_ENABLE_MPS_FALLBACK=1` to use the CPU as a fallback for this op. WARNING: this will be slower than running natively on MPS.```)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/114771
Approved by: https://github.com/lezcano
This commit is contained in:
watarungurunnn
2024-02-05 15:36:55 +00:00
committed by PyTorch MergeBot
parent a72190fd51
commit d444a3b443
3 changed files with 161 additions and 8 deletions

1
.gitignore vendored
View File

@ -126,6 +126,7 @@ env
.circleci/scripts/COMMIT_MSG
scripts/release_notes/*.json
sccache-stats*.json
lint.json
# These files get copied over on invoking setup.py
torchgen/packaged/*