Browse Source

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>
tags/n4.2
Guo, Yejun Pedro Arthur 6 years ago
parent
commit
014b6a56f8
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavfilter/dnn_backend_tf.c

+ 1
- 0
libavfilter/dnn_backend_tf.c View File

@@ -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,


Loading…
Cancel
Save