diff options
author | Soumith Chintala <soumith@gmail.com> | 2017-07-04 22:14:12 +0300 |
---|---|---|
committer | Soumith Chintala <soumith@gmail.com> | 2017-07-04 22:17:15 +0300 |
commit | 11321f7bf65573849be90650bb376f05dfd79c60 (patch) | |
tree | f9d5aa06a9acb377cf79457a5fdec4bc60438f66 | |
parent | e78e9aacd4894e65e3ce3524c517d2a39d12f338 (diff) |
remove unnecessary contiguous assertion
-rw-r--r-- | lib/TH/generic/THTensorMath.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/TH/generic/THTensorMath.c b/lib/TH/generic/THTensorMath.c index 215c04c..db7a0cb 100644 --- a/lib/TH/generic/THTensorMath.c +++ b/lib/TH/generic/THTensorMath.c @@ -591,7 +591,6 @@ static void THTensor_(quickselectnoidx)(real *arr, long k, long elements, long s real THTensor_(medianall)(THTensor *tensor) { THArgCheck(tensor->nDimension > 0, 1, "tensor must have one dimension"); - THArgCheck(THTensor_(isContiguous)(tensor), 1, "input is not contiguous"); real theMedian; ptrdiff_t numel; |