[FFmpeg-devel] [PATCH V6 2/2] FATE/dnn: add unit test for dnn avgpool layer

Guo, Yejun yejun.guo at intel.com
Fri Aug 7 05:34:47 EEST 2020




> V6:
>   Fix the issue of make fate failed in V4&V5

don't need such info in the commit log.

> 
>  tests/dnn/.gitignore               |   1 +
>  tests/dnn/Makefile                 |   1 +
>  tests/dnn/dnn-layer-avgpool-test.c | 198 +++++++++++++++++++++++++++++
>  tests/fate/dnn.mak                 |   5 +
>  4 files changed, 205 insertions(+)
>  create mode 100644 tests/dnn/dnn-layer-avgpool-test.c
> 
> diff --git a/tests/dnn/.gitignore b/tests/dnn/.gitignore index
> 1fcd2410b4..b847a01177 100644
> --- a/tests/dnn/.gitignore
> +++ b/tests/dnn/.gitignore
> @@ -4,3 +4,4 @@
>  /dnn-layer-pad-test
>  /dnn-layer-mathbinary-test
>  /dnn-layer-mathunary-test
> +/dnn-layer-avgpool-test
> diff --git a/tests/dnn/Makefile b/tests/dnn/Makefile index
> 64591b7851..8afdfab5d3 100644
> --- a/tests/dnn/Makefile
> +++ b/tests/dnn/Makefile
> @@ -4,6 +4,7 @@ DNNTESTPROGS += dnn-layer-depth2space
> DNNTESTPROGS += dnn-layer-mathbinary  DNNTESTPROGS +=
> dnn-layer-maximum  DNNTESTPROGS += dnn-layer-mathunary
> +DNNTESTPROGS += dnn-layer-avgpool
> 
>  DNNTESTOBJS  := $(DNNTESTOBJS:%=$(DNNTESTSDIR)%)
> $(DNNTESTPROGS:%=$(DNNTESTSDIR)/%-test.o)
>  DNNTESTPROGS := $(DNNTESTPROGS:%=$(DNNTESTSDIR)/%-test$(EXESUF))
> diff --git a/tests/dnn/dnn-layer-avgpool-test.c
> b/tests/dnn/dnn-layer-avgpool-test.c
> new file mode 100644
> index 0000000000..5fadde1024
> --- /dev/null
> +++ b/tests/dnn/dnn-layer-avgpool-test.c
> @@ -0,0 +1,198 @@
> +/*
> + * Copyright (c) 2020
> + *
> + * This file is part of FFmpeg.
> + *
> + * FFmpeg is free software; you can redistribute it and/or
> + * modify it under the terms of the GNU Lesser General Public
> + * License as published by the Free Software Foundation; either
> + * version 2.1 of the License, or (at your option) any later version.
> + *
> + * FFmpeg is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
> + * Lesser General Public License for more details.
> + *
> + * You should have received a copy of the GNU Lesser General Public
> + * License along with FFmpeg; if not, write to the Free Software
> + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
> +02110-1301 USA  */
> +
> +#include <stdio.h>
> +#include <string.h>//?

please remove '//?' here.


More information about the ffmpeg-devel mailing list