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

Guo, Yejun yejun.guo at intel.com
Mon Aug 3 05:23:52 EEST 2020



> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of Ting Fu
> Sent: 2020年7月30日 18:03
> To: ffmpeg-devel at ffmpeg.org
> Subject: [FFmpeg-devel] [PATCH V3 2/2] FATE/dnn: add unit test for dnn avgpool
> layer
> 
> 'make fate-dnn-layer-avgpool' to run the test
> 
> Signed-off-by: Ting Fu <ting.fu at intel.com>
> ---
>  tests/dnn/.gitignore               |   1 +
>  tests/dnn/Makefile                 |   1 +
>  tests/dnn/dnn-layer-avgpool-test.c | 202 +++++++++++++++++++++++++++++
>  tests/fate/dnn.mak                 |   5 +
>  4 files changed, 209 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..1c47f9330d
> --- /dev/null
> +++ b/tests/dnn/dnn-layer-avgpool-test.c
> @@ -0,0 +1,202 @@
> +/*
> + * 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>//?

remove '//?'


More information about the ffmpeg-devel mailing list