[FFmpeg-devel] [PATCH V2 1/3] dnn/openvino: remove unnecessary code
Ting Fu
ting.fu at intel.com
Fri Jan 15 10:43:16 EET 2021
Signed-off-by: Ting Fu <ting.fu at intel.com>
---
libavfilter/dnn/dnn_backend_openvino.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/libavfilter/dnn/dnn_backend_openvino.c b/libavfilter/dnn/dnn_backend_openvino.c
index 5271d1caa5..8476f4fb38 100644
--- a/libavfilter/dnn/dnn_backend_openvino.c
+++ b/libavfilter/dnn/dnn_backend_openvino.c
@@ -325,14 +325,6 @@ static DNNReturnType get_input_ov(void *model, DNNData *input, const char *input
return DNN_ERROR;
}
- // The order of dims in the openvino is fixed and it is always NCHW for 4-D data.
- // while we pass NHWC data from FFmpeg to openvino
- status = ie_network_set_input_layout(ov_model->network, input_name, NHWC);
- if (status != OK) {
- av_log(ctx, AV_LOG_ERROR, "Input \"%s\" does not match layout NHWC\n", input_name);
- return DNN_ERROR;
- }
-
input->channels = dims.dims[1];
input->height = dims.dims[2];
input->width = dims.dims[3];
--
2.17.1
More information about the ffmpeg-devel
mailing list