Skip to content

Commit

Permalink
libavfilter/dnn/dnn_backend_tf: fix typo that variable uninitialized.
Browse files Browse the repository at this point in the history
if it is initialized randomly, the tensorflow lib will report
error message such as:
Attempt to add output -7920 of depth_to_space4 not in range [0, 1) to node with type Identity

Signed-off-by: Guo, Yejun <[email protected]>
Signed-off-by: Pedro Arthur <[email protected]>
  • Loading branch information
guoyejun authored and grandao committed Aug 19, 2019
1 parent 596ecc2 commit 29aeeb3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libavfilter/dnn/dnn_backend_tf.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ static DNNReturnType load_native_model(TFModel *tf_model, const char *model_file

op_desc = TF_NewOperation(tf_model->graph, "Identity", "y");
input.oper = op;
input.index = 0;
TF_AddInput(op_desc, input);
TF_FinishOperation(op_desc, tf_model->status);
if (TF_GetCode(tf_model->status) != TF_OK){
Expand Down

0 comments on commit 29aeeb3

Please sign in to comment.