diff options
author | Guo, Yejun <yejun.guo@intel.com> | 2020-04-26 15:49:39 +0800 |
---|---|---|
committer | Guo, Yejun <yejun.guo@intel.com> | 2020-05-08 15:22:44 +0800 |
commit | 6fd61234d59783d87f917dcac4d7cf2b89a661c5 (patch) | |
tree | 1e133c8784d7e41a1fa438835cf086e22e351cb5 | |
parent | 71e28c5422e321640b69ee512eef3e899c746e1e (diff) | |
download | ffmpeg-6fd61234d59783d87f917dcac4d7cf2b89a661c5.tar.gz |
dnn-layer-mathbinary-test: add unit test for minimum
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
-rw-r--r-- | tests/dnn/dnn-layer-mathbinary-test.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/dnn/dnn-layer-mathbinary-test.c b/tests/dnn/dnn-layer-mathbinary-test.c index f67c0f213b..e7f8f8557c 100644 --- a/tests/dnn/dnn-layer-mathbinary-test.c +++ b/tests/dnn/dnn-layer-mathbinary-test.c @@ -38,6 +38,8 @@ static float get_expected(float f1, float f2, DNNMathBinaryOperation op) return f1 * f2; case DMBO_REALDIV: return f1 / f2; + case DMBO_MINIMUM: + return (f1 < f2) ? f1 : f2; default: av_assert0(!"not supported yet"); return 0.f; @@ -200,5 +202,8 @@ int main(int argc, char **argv) if (test(DMBO_REALDIV)) return 1; + if (test(DMBO_MINIMUM)) + return 1; + return 0; } |