History

libavfilter/dnn/dnn_backend_tf: fix typo that variable uninitialized.

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

Guo, Yejun committed 7 years ago

Commit 29aeeb31 parent 596ecc21 file · +1 −0Browse files

Unified · Split

libavfilter/dnn/dnn_backend_tf.c+1−0
@@ -490,6 +490,7 @@ static DNNReturnType load_native_model(TFModel *tf_model, const char *model_file · 489 unmodified lines
490 490
491 op_desc = TF_NewOperation(tf_model->graph, "Identity", "y");491 op_desc = TF_NewOperation(tf_model->graph, "Identity", "y");
492 input.oper = op;492 input.oper = op;
493 input.index = 0;
493 TF_AddInput(op_desc, input);494 TF_AddInput(op_desc, input);
494 TF_FinishOperation(op_desc, tf_model->status);495 TF_FinishOperation(op_desc, tf_model->status);
495 if (TF_GetCode(tf_model->status) != TF_OK){496 if (TF_GetCode(tf_model->status) != TF_OK){

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t