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>
pull/329/head^2
Guo, Yejun 6 years ago committed by Pedro Arthur
parent c539dd992c
commit 014b6a56f8
  1. 1
      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,

Loading…
Cancel
Save