1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

dnn-layer-mathbinary-test: add unit test for divide

Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
This commit is contained in:
Guo, Yejun 2020-04-11 13:50:32 +08:00
parent 8ce9d88f93
commit 2e38c63630

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;
}