aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTing Fu2020-06-29 22:54:09 +0800
committerGuo, Yejun2020-07-06 12:45:14 +0800
commit52d2e1666546d47799e1d2aeb6d70f9d5edb9369 (patch)
tree58c46e5974eec3dad812c8c85dd51ad19fe3cba8 /tests
parentcd2e3a864d167be32e119ac44fd65a322121bf3b (diff)
dnn-layer-math-unary-test: add unit test for acosh
Signed-off-by: Ting Fu <ting.fu@intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/dnn/dnn-layer-mathunary-test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/dnn/dnn-layer-mathunary-test.c b/tests/dnn/dnn-layer-mathunary-test.c
index 90fce71a0c..5587e47ad5 100644
--- a/tests/dnn/dnn-layer-mathunary-test.c
+++ b/tests/dnn/dnn-layer-mathunary-test.c
@@ -52,6 +52,8 @@ static float get_expected(float f, DNNMathUnaryOperation op)
return tanh(f);
case DMUO_ASINH:
return asinh(f);
+ case DMUO_ACOSH:
+ return acosh(f);
default:
av_assert0(!"not supported yet");
return 0.f;
@@ -117,5 +119,7 @@ int main(int agrc, char **argv)
return 1;
if (test(DMUO_ASINH))
return 1;
+ if (test(DMUO_ACOSH))
+ return 1;
return 0;
}