diff options
author | Wenlong Ding <wenlong.ding@intel.com> | 2021-03-22 16:20:12 +0800 |
---|---|---|
committer | Guo, Yejun <yejun.guo@intel.com> | 2021-03-24 13:57:19 +0800 |
commit | 16e501464930009312665dde90dbefec94e3358d (patch) | |
tree | 3c21528b9e4d914738b392a90807f20faeeac634 | |
parent | b460595dd7b831a07cdd3e59ad726d99db4ba557 (diff) | |
download | ffmpeg-16e501464930009312665dde90dbefec94e3358d.tar.gz |
tests/dnn/dnn-layer-mathunary-test: add unit test for exp
Signed-off-by: Wenlong Ding <wenlong.ding@intel.com>
-rw-r--r-- | tests/dnn/dnn-layer-mathunary-test.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/dnn/dnn-layer-mathunary-test.c b/tests/dnn/dnn-layer-mathunary-test.c index a8c5ab0224..0f84c12960 100644 --- a/tests/dnn/dnn-layer-mathunary-test.c +++ b/tests/dnn/dnn-layer-mathunary-test.c @@ -62,6 +62,8 @@ static float get_expected(float f, DNNMathUnaryOperation op) return floor(f); case DMUO_ROUND: return round(f); + case DMUO_EXP: + return exp(f); default: av_assert0(!"not supported yet"); return 0.f; @@ -140,5 +142,7 @@ int main(int agrc, char **argv) return 1; if (test(DMUO_ROUND)) return 1; + if (test(DMUO_EXP)) + return 1; return 0; } |