Make argument size checking consistent across CPU and CUDA for torch.gesv (#15430)
authorvishwakftw <cs15btech11043@iith.ac.in>
Wed, 26 Dec 2018 16:29:57 +0000 (08:29 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 26 Dec 2018 16:32:28 +0000 (08:32 -0800)
commit5ac95758e2d9362f21a33c6846da37804184e198
tree0d9b295d2d55d20e1d8d74617fb657227caf0392
parentf636dc927687cc50a527c9185f9d95ed65e32996
Make argument size checking consistent across CPU and CUDA for torch.gesv (#15430)

Summary:
There is an inconsistency in the size of arguments for gesv, which is fixed in this PR.

Changelog:
- Replicate check in CPU as done for CUDA
- Fix argument ordering (minor) in CUDA checking

Fixes #15328

Differential Revision: D13531167

Pulled By: soumith

fbshipit-source-id: c4b4e4fc12880208d08e88d1e47e730ac98c2ad3
aten/src/ATen/native/BatchLinearAlgebra.cpp
aten/src/TH/generic/THTensorLapack.cpp
aten/src/THC/generic/THCTensorMathMagma.cu