det_backward: return svd path for double backward (so that all ci tests pass) (#62570)
Summary:
Potentially fixes https://github.com/pytorch/pytorch/issues/62327 and fixes https://github.com/pytorch/pytorch/issues/62328.
This PR replaces the double backward of det from eig to svd. The latter is slower but should be more stable.
CC anjali411
Pull Request resolved: https://github.com/pytorch/pytorch/pull/62570
Reviewed By: pbelevich
Differential Revision: D30072876
Pulled By: anjali411
fbshipit-source-id: c91b507dbfd6a3ec47dc6d0b0dcfa5f8c8228c30