Check the _geev input matrix for NaNs and infs (#37642)
Summary:
If we don't do this we risk a segmentation fault from the Intel MKL.
Fixes https://github.com/pytorch/pytorch/issues/37499
Pull Request resolved: https://github.com/pytorch/pytorch/pull/37642
Differential Revision: D21465181
Pulled By: pbelevich
fbshipit-source-id: 809dca11f11de91018d978578bc11737b879d6ec