[UT] Harmonize tests by using approxEq<> everywhere
Previously, tests used both `approxEq<>` and a for-loop combined with `std::abs()` to test the equality of two tensors. `approxEq`` results in fewer and clearer lines. It is also more configurable.
Showing
- unit_tests/operator/Test_AvgPoolingImpl.cpp 3 additions, 5 deletionsunit_tests/operator/Test_AvgPoolingImpl.cpp
- unit_tests/operator/Test_BatchNormImpl.cpp 2 additions, 6 deletionsunit_tests/operator/Test_BatchNormImpl.cpp
- unit_tests/operator/Test_ConvImpl.cpp 2 additions, 5 deletionsunit_tests/operator/Test_ConvImpl.cpp
- unit_tests/operator/Test_ErfImpl.cpp 4 additions, 11 deletionsunit_tests/operator/Test_ErfImpl.cpp
- unit_tests/operator/Test_MetaOperator.cpp 1 addition, 5 deletionsunit_tests/operator/Test_MetaOperator.cpp
- unit_tests/operator/Test_SoftmaxImpl.cpp 3 additions, 5 deletionsunit_tests/operator/Test_SoftmaxImpl.cpp
- unit_tests/operator/Test_SqrtImpl.cpp 4 additions, 12 deletionsunit_tests/operator/Test_SqrtImpl.cpp
Loading
Please register or sign in to comment