Removed infos vector in torch.linalg.qr (#56248)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/56248
`info` error code for QR decomposition only indicates wrong parameters,
when everything is implemented correctly it will never be nonzero so we
don't need to check it for CPU path.
For MAGMA `checkMagmaInternalError` is added that checks for failed
memory allocations internal to MAGMA.
Test Plan: Imported from OSS
Reviewed By: ngimel
Differential Revision: D27850414
Pulled By: mruberry
fbshipit-source-id: ddda1209008f879f24c9ad08739e10c28b194d18