aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuo, Yejun <yejun.guo@intel.com>2021-01-22 21:44:14 +0800
committerGuo, Yejun <yejun.guo@intel.com>2021-01-28 09:45:13 +0800
commita163aa6cf7fea184a2e72cade7a9aa4f841a23f3 (patch)
tree8a5f31437786264b6da27e9ff98a95f21992857f
parent24892fa4a790d074081c1fe42a118dd3ba01bc60 (diff)
downloadffmpeg-a163aa6cf7fea184a2e72cade7a9aa4f841a23f3.tar.gz
tests/dnn: enable unit test dense
-rw-r--r--tests/dnn/Makefile1
-rw-r--r--tests/dnn/dnn-layer-dense-test.c2
-rw-r--r--tests/fate/dnn.mak5
3 files changed, 7 insertions, 1 deletions
diff --git a/tests/dnn/Makefile b/tests/dnn/Makefile
index 8afdfab5d3..ef827520de 100644
--- a/tests/dnn/Makefile
+++ b/tests/dnn/Makefile
@@ -1,6 +1,7 @@
DNNTESTPROGS += dnn-layer-pad
DNNTESTPROGS += dnn-layer-conv2d
DNNTESTPROGS += dnn-layer-depth2space
+DNNTESTPROGS += dnn-layer-dense
DNNTESTPROGS += dnn-layer-mathbinary
DNNTESTPROGS += dnn-layer-maximum
DNNTESTPROGS += dnn-layer-mathunary
diff --git a/tests/dnn/dnn-layer-dense-test.c b/tests/dnn/dnn-layer-dense-test.c
index 755d3ebb31..696f7505e5 100644
--- a/tests/dnn/dnn-layer-dense-test.c
+++ b/tests/dnn/dnn-layer-dense-test.c
@@ -59,7 +59,7 @@ static int test(void)
print(list(output.flatten()))
*/
- ConvolutionalParams params;
+ DenseParams params;
DnnOperand operands[2];
int32_t input_indexes[1];
float input[1*5*6*3] = {
diff --git a/tests/fate/dnn.mak b/tests/fate/dnn.mak
index c5e458708e..ef07ee45f8 100644
--- a/tests/fate/dnn.mak
+++ b/tests/fate/dnn.mak
@@ -8,6 +8,11 @@ fate-dnn-layer-conv2d: $(DNNTESTSDIR)/dnn-layer-conv2d-test$(EXESUF)
fate-dnn-layer-conv2d: CMD = run $(DNNTESTSDIR)/dnn-layer-conv2d-test$(EXESUF)
fate-dnn-layer-conv2d: CMP = null
+FATE_DNN += fate-dnn-layer-dense
+fate-dnn-layer-dense: $(DNNTESTSDIR)/dnn-layer-dense-test$(EXESUF)
+fate-dnn-layer-dense: CMD = run $(DNNTESTSDIR)/dnn-layer-dense-test$(EXESUF)
+fate-dnn-layer-dense: CMP = null
+
FATE_DNN += fate-dnn-layer-depth2space
fate-dnn-layer-depth2space: $(DNNTESTSDIR)/dnn-layer-depth2space-test$(EXESUF)
fate-dnn-layer-depth2space: CMD = run $(DNNTESTSDIR)/dnn-layer-depth2space-test$(EXESUF)