]> git.sesse.net Git - ffmpeg/commitdiff
dnn-layer-math-unary-test: add unit test for acosh
authorTing Fu <ting.fu@intel.com>
Mon, 29 Jun 2020 14:54:09 +0000 (22:54 +0800)
committerGuo, Yejun <yejun.guo@intel.com>
Mon, 6 Jul 2020 04:45:14 +0000 (12:45 +0800)
Signed-off-by: Ting Fu <ting.fu@intel.com>
tests/dnn/dnn-layer-mathunary-test.c

index 90fce71a0cb13690847a2bf8100896db3c798a8b..5587e47ad506e665a13c721d7607115816da2ef8 100644 (file)
@@ -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;
 }