Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/torch7.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoumith Chintala <soumith@gmail.com>2017-07-04 22:14:12 +0300
committerSoumith Chintala <soumith@gmail.com>2017-07-04 22:17:15 +0300
commit11321f7bf65573849be90650bb376f05dfd79c60 (patch)
treef9d5aa06a9acb377cf79457a5fdec4bc60438f66
parente78e9aacd4894e65e3ce3524c517d2a39d12f338 (diff)
remove unnecessary contiguous assertion
-rw-r--r--lib/TH/generic/THTensorMath.c1
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;