This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
dnn-layer-mathbinary-test: add unit test for divide
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
tags/n4.3
Guo, Yejun
5 years ago
parent
8ce9d88f93
commit
2e38c63630
1 changed files
with
5 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-0
tests/dnn/dnn-layer-mathbinary-test.c
+ 5
- 0
tests/dnn/dnn-layer-mathbinary-test.c
View File
@@ -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;
}
Write
Preview
Loading…
Cancel
Save