Skip to content

Commit 096221d

Browse files
pradeepumar456
authored andcommitted
Fix input ndims check for regions function
1 parent db3c333 commit 096221d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/api/c/regions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ af_err af_regions(af_array *out, const af_array in,
3535
af::dim4 dims = info.dims();
3636

3737
dim_t in_ndims = dims.ndims();
38-
DIM_ASSERT(1, (in_ndims <= 3 && in_ndims >= 2));
38+
DIM_ASSERT(1, (in_ndims == 2));
3939

4040
af_dtype in_type = info.getType();
4141
if (in_type != b8) { TYPE_ERROR(1, in_type); }

0 commit comments

Comments
 (0)