ffmpeg | branch: master | Guo, Yejun <yejun....@intel.com> | Sat Apr 11 
13:24:36 2020 +0800| [265b5bd324496d6a342506ffa6157df5f2a85353] | committer: 
Guo, Yejun

dnn-layer-mathbinary-test: add unit test for 'mul'

Signed-off-by: Guo, Yejun <yejun....@intel.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=265b5bd324496d6a342506ffa6157df5f2a85353
---

 tests/dnn/dnn-layer-mathbinary-test.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/dnn/dnn-layer-mathbinary-test.c 
b/tests/dnn/dnn-layer-mathbinary-test.c
index fd8037fca0..3b0f0c5a2e 100644
--- a/tests/dnn/dnn-layer-mathbinary-test.c
+++ b/tests/dnn/dnn-layer-mathbinary-test.c
@@ -34,6 +34,8 @@ static float get_expected(float f1, float f2, 
DNNMathBinaryOperation op)
         return f1 - f2;
     case DMBO_ADD:
         return f1 + f2;
+    case DMBO_MUL:
+        return f1 * f2;
     default:
         av_assert0(!"not supported yet");
         return 0.f;
@@ -190,5 +192,8 @@ int main(int argc, char **argv)
     if (test(DMBO_ADD))
         return 1;
 
+    if (test(DMBO_MUL))
+        return 1;
+
     return 0;
 }

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to