Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
brightening-eyes committed Sep 22, 2023
1 parent 12ce7b7 commit b541699
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_range.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@
#include "layer/range.h"
#include "testutil.h"

static int test_range(ncnn::Mat& a, ncnn::Mat& b, ncnn::Mat& c)
static int test_range(const ncnn::Mat& _a, const ncnn::Mat& _b, const ncnn::Mat& _c)
{

ncnn::Mat a = _a;
ncnn::Mat b = _b;
ncnn::Mat c = _c;

// the values should be greater than 0
RandomizeInt(a, 0, 100000);
RandomizeInt(b, a[0], a[0]* 10);
Expand Down

0 comments on commit b541699

Please sign in to comment.