Skip to content

Commit 56df97c

Browse files
committed
remove unnecessary contiguous assertion
1 parent f425c52 commit 56df97c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

generic/THTensorMath.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,6 @@ static void THTensor_(quickselectnoidx)(real *arr, long k, long elements, long s
591591
real THTensor_(medianall)(THTensor *tensor)
592592
{
593593
THArgCheck(tensor->nDimension > 0, 1, "tensor must have one dimension");
594-
THArgCheck(THTensor_(isContiguous)(tensor), 1, "input is not contiguous");
595594

596595
real theMedian;
597596
ptrdiff_t numel;

0 commit comments

Comments
 (0)