summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorGuo, Yejun <yejun.guo@intel.com>2019-04-25 10:13:49 +0800
committerPedro Arthur <bygrandao@gmail.com>2019-05-08 12:33:00 -0300
commit014b6a56f8e4020dd9ec2255266cd0a24c885c0c (patch)
tree667556fa45bcac2879a9d01a5018af45946d6097 /libavfilter
parentc539dd992cea8313ecb7565bb74645c81d7bf333 (diff)
libavfilter/dnn_backend_tf.c: set layer_add_res for input layer
otherwise, the following check will return error if layer_add_res is randomly initialized. Signed-off-by: Guo, Yejun <yejun.guo@intel.com> Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/dnn_backend_tf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/dnn_backend_tf.c b/libavfilter/dnn_backend_tf.c
index 5bc7f0684e..9e0c127e77 100644
--- a/libavfilter/dnn_backend_tf.c
+++ b/libavfilter/dnn_backend_tf.c
@@ -440,6 +440,7 @@ static DNNReturnType load_native_model(TFModel *tf_model, const char *model_file
for (layer = 0; layer < conv_network->layers_num; ++layer){
switch (conv_network->layers[layer].type){
case INPUT:
+ layer_add_res = DNN_SUCCESS;
break;
case CONV:
layer_add_res = add_conv_layer(tf_model, transpose_op, &op,