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
Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -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){ |