diff mbox series

[FFmpeg-devel,V2,1/3] dnn/openvino: remove unnecessary code

Message ID 20210115084318.5152-1-ting.fu@intel.com
State Superseded
Headers show
Series [FFmpeg-devel,V2,1/3] dnn/openvino: remove unnecessary code
Related show

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Fu, Ting Jan. 15, 2021, 8:43 a.m. UTC
Signed-off-by: Ting Fu <ting.fu@intel.com>
---
 libavfilter/dnn/dnn_backend_openvino.c | 8 --------
 1 file changed, 8 deletions(-)
diff mbox series

Patch

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];