diff options
author | Mingyu Yin <mingyu.yin@intel.com> | 2020-08-10 19:05:42 +0800 |
---|---|---|
committer | Guo, Yejun <yejun.guo@intel.com> | 2020-08-12 10:30:46 +0800 |
commit | 4ed6bca4ae578e050d60aa96dbbdefd60f6d67c4 (patch) | |
tree | 99d4f9d1afd6404d518c3a1fb480b4796fa9fe26 /tests | |
parent | ed39d28ce775dffd4ea75544ee09186d4f1a142a (diff) | |
download | ffmpeg-4ed6bca4ae578e050d60aa96dbbdefd60f6d67c4.tar.gz |
dnn_backend_native_layer_mathunary: add round support
Signed-off-by: Mingyu Yin <mingyu.yin@intel.com>
Reviewed-by: Guo, Yejun <yejun.guo@intel.com>
Diffstat (limited to 'tests')
-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 0bfcdcbd85..e9235120f3 100644 --- a/tests/dnn/dnn-layer-mathunary-test.c +++ b/tests/dnn/dnn-layer-mathunary-test.c @@ -60,6 +60,8 @@ static float get_expected(float f, DNNMathUnaryOperation op) return ceil(f); case DMUO_FLOOR: return floor(f); + case DMUO_ROUND: + return round(f); default: av_assert0(!"not supported yet"); return 0.f; @@ -136,5 +138,7 @@ int main(int agrc, char **argv) return 1; if (test(DMUO_FLOOR)) return 1; + if (test(DMUO_ROUND)) + return 1; return 0; } |