Fix test failure when compiled without LAPACK support (#70671)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/70670
Pull Request resolved: https://github.com/pytorch/pytorch/pull/70671
Reviewed By: H-Huang
Differential Revision: D34242339
Pulled By: janeyx99
fbshipit-source-id: 8cd13c13588007c60e9c3f17dbf707dcfa2e0e04
(cherry picked from commit cf6dbe3e819aef3a3dca8801de5c9bc1e8884e22)