Skip to content

Commit

Permalink
Fix input ndims check for regions function
Browse files Browse the repository at this point in the history
  • Loading branch information
9prady9 authored and umar456 committed Oct 5, 2020
1 parent db3c333 commit 096221d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/c/regions.cpp
Expand Up @@ -35,7 +35,7 @@ af_err af_regions(af_array *out, const af_array in,
af::dim4 dims = info.dims();

dim_t in_ndims = dims.ndims();
DIM_ASSERT(1, (in_ndims <= 3 && in_ndims >= 2));
DIM_ASSERT(1, (in_ndims == 2));

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

0 comments on commit 096221d

Please sign in to comment.