diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/validation/fixtures/ReverseFixture.h | 2 | ||||
-rw-r--r-- | tests/validation/reference/Reverse.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/validation/fixtures/ReverseFixture.h b/tests/validation/fixtures/ReverseFixture.h index 7518a0926a..3bf4c3e327 100644 --- a/tests/validation/fixtures/ReverseFixture.h +++ b/tests/validation/fixtures/ReverseFixture.h @@ -152,7 +152,7 @@ protected: // Fill reference fill(src); auto axis_v = generate_random_axis(use_negative_axis); - std::copy(axis_v.begin(), axis_v.begin() + axis_shape.x(), axis.data()); + std::copy(axis_v.begin(), axis_v.begin() + _num_dims, axis.data()); return reference::reverse<T>(src, axis, use_inverted_axis); } diff --git a/tests/validation/reference/Reverse.cpp b/tests/validation/reference/Reverse.cpp index 5fd15b5bfc..7924f900d1 100644 --- a/tests/validation/reference/Reverse.cpp +++ b/tests/validation/reference/Reverse.cpp @@ -59,7 +59,7 @@ SimpleTensor<T> reverse(const SimpleTensor<T> &src, const SimpleTensor<int32_t> // The values of axis tensor must be between [-rank, rank-1]. if((axis_i < -rank) || (axis_i >= rank)) { - ARM_COMPUTE_ERROR("the valuses of the axis tensor must be within [-rank, rank-1]."); + ARM_COMPUTE_ERROR("the values of the axis tensor must be within [-rank, rank-1]."); } // In case of negative axis value i.e targeted axis(i) = rank + axis(i) |