Unified · Split
| @@ -493,6 +493,11 @@ static DNNReturnType get_output_ov(void *model, const char *input_name, int inpu · 492 unmodified lines | ||
| 493 | 493 | IEStatusCode status; |
| 494 | 494 | input_shapes_t input_shapes; |
| 495 | 495 | |
| 496 | + if (ov_model->model->func_type != DFT_PROCESS_FRAME) { | |
| 497 | + av_log(ctx, AV_LOG_ERROR, "Get output dim only when processing frame.\n"); | |
| 498 | + return DNN_ERROR; | |
| 499 | + } | |
| 500 | + | |
| 496 | 501 | if (ctx->options.input_resizable) { |
| 497 | 502 | status = ie_network_get_input_shapes(ov_model->network, &input_shapes); |
| 498 | 503 | input_shapes.shapes->shape.dims[2] = input_height; |