Skip to content
This repository was archived by the owner on Feb 18, 2020. It is now read-only.

Commit 6fac647

Browse files
Fixed CArray::expand_dims invalid axis exception
1 parent 5b543dc commit 6fac647

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

kernel/shape.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -919,10 +919,6 @@ CArray_ExpandDims(CArray * target, int axis, MemoryPointer * out)
919919
return NULL;
920920
}
921921

922-
if (check_and_adjust_axis_msg(&axis, CArray_NDIM(target)) < 0) {
923-
return NULL;
924-
}
925-
926922
t1_s = axis;
927923
t1 = emalloc(t1_s * sizeof(int));
928924

0 commit comments

Comments
 (0)