Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
brightening-eyes committed Sep 22, 2023
1 parent d334390 commit f268ce1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/test_range.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@ static int test_range(const ncnn::Mat& _a, const ncnn::Mat& _b, const ncnn::Mat&
ncnn::Mat c = _c;

// the values should be greater than 0
RandomizeInt(a, 0, 100000);
RandomizeInt(b, a[0], a[0]* 10);
a = a.clone();
RandomizeInt(a, 0, 100);
int* a_ptr = a;
b = b.clone();
RandomizeInt(b, *a_ptr + 10, *a_ptr + 100);
if(!c.empty())
RandomizeInt(c, 1, 5);
c = c.clone();
RandomizeInt(c, 1, 5);

ncnn::ParamDict pd;

Expand Down

0 comments on commit f268ce1

Please sign in to comment.