diff mbox series

[FFmpeg-devel,6/6] dnn-layer-mathbinary-test: add unit test for divide

Message ID 1586594419-17053-1-git-send-email-yejun.guo@intel.com
State Accepted
Commit 2e38c63630c29ee7024edc4f01d888802fb7b641
Headers show
Series [FFmpeg-devel,1/6] dnn/native: add native support for 'add' | expand

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Guo, Yejun April 11, 2020, 8:40 a.m. UTC
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
---
 tests/dnn/dnn-layer-mathbinary-test.c | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Guo, Yejun April 16, 2020, 12:52 a.m. UTC | #1
> -----Original Message-----
> From: Guo, Yejun
> Sent: Saturday, April 11, 2020 4:40 PM
> To: ffmpeg-devel@ffmpeg.org
> Cc: Guo, Yejun <yejun.guo@intel.com>
> Subject: [PATCH 6/6] dnn-layer-mathbinary-test: add unit test for divide
> 
> Signed-off-by: Guo, Yejun <yejun.guo@intel.com>

this patch set ask for review, thanks.
Guo, Yejun April 21, 2020, 12:22 a.m. UTC | #2
> -----Original Message-----
> From: ffmpeg-devel [mailto:ffmpeg-devel-bounces@ffmpeg.org] On Behalf Of
> Guo, Yejun
> Sent: Thursday, April 16, 2020 8:53 AM
> To: ffmpeg-devel@ffmpeg.org
> Subject: Re: [FFmpeg-devel] [PATCH 6/6] dnn-layer-mathbinary-test: add unit
> test for divide
> 
> 
> 
> > -----Original Message-----
> > From: Guo, Yejun
> > Sent: Saturday, April 11, 2020 4:40 PM
> > To: ffmpeg-devel@ffmpeg.org
> > Cc: Guo, Yejun <yejun.guo@intel.com>
> > Subject: [PATCH 6/6] dnn-layer-mathbinary-test: add unit test for divide
> >
> > Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
> 
> this patch set ask for review, thanks.

will push tomorrow if no other comments, thanks.

> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
diff mbox series

Patch

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