]> git.sesse.net Git - ffmpeg/commitdiff
dnn-layer-math-unary-test: add unit test for sinh
authorTing Fu <ting.fu@intel.com>
Mon, 29 Jun 2020 14:54:01 +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 bf77c44bbeb5234bcb1f65767c44e99bdf96c78a..a1ff05e5fb53a61861f37dd7194d6ea84d9ab1e1 100644 (file)
@@ -44,6 +44,8 @@ static float get_expected(float f, DNNMathUnaryOperation op)
         return acos(f);
     case DMUO_ATAN:
         return atan(f);
+    case DMUO_SINH:
+        return sinh(f);
     default:
         av_assert0(!"not supported yet");
         return 0.f;
@@ -101,5 +103,7 @@ int main(int agrc, char **argv)
         return 1;
     if (test(DMUO_ATAN))
         return 1;
+    if (test(DMUO_SINH))
+        return 1;
     return 0;
 }