From dff39ea9f0154ec52b7548b122a4a5332df3c2c6 Mon Sep 17 00:00:00 2001 From: "Guo, Yejun" Date: Mon, 21 Oct 2019 20:38:03 +0800 Subject: dnn: add tf.nn.conv2d support for native model Unlike other tf.*.conv2d layers, tf.nn.conv2d does not create many nodes (within a scope) in the graph, it just acts like other layers. tf.nn.conv2d only creates one node in the graph, and no internal nodes such as 'kernel' are created. The format of native model file is also changed, a flag named has_bias is added, so change the version number. Signed-off-by: Guo, Yejun Signed-off-by: Pedro Arthur --- tests/dnn/dnn-layer-conv2d-test.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/dnn/dnn-layer-conv2d-test.c') diff --git a/tests/dnn/dnn-layer-conv2d-test.c b/tests/dnn/dnn-layer-conv2d-test.c index 9d13da37c8..2da01e5372 100644 --- a/tests/dnn/dnn-layer-conv2d-test.c +++ b/tests/dnn/dnn-layer-conv2d-test.c @@ -97,6 +97,7 @@ static int test_with_same_dilate(void) float bias[2] = { -1.6574852, -0.72915393 }; params.activation = TANH; + params.has_bias = 1; params.biases = bias; params.dilation = 2; params.input_num = 3; @@ -196,6 +197,7 @@ static int test_with_valid(void) float bias[2] = { -0.4773722, -0.19620377 }; params.activation = TANH; + params.has_bias = 1; params.biases = bias; params.dilation = 1; params.input_num = 3; -- cgit v1.2.3