]> git.sesse.net Git - ffmpeg/commitdiff
dnn/openvino: remove unnecessary code
authorTing Fu <ting.fu@intel.com>
Mon, 18 Jan 2021 03:42:12 +0000 (11:42 +0800)
committerGuo, Yejun <yejun.guo@intel.com>
Mon, 18 Jan 2021 05:09:21 +0000 (13:09 +0800)
Signed-off-by: Ting Fu <ting.fu@intel.com>
libavfilter/dnn/dnn_backend_openvino.c

index 5271d1caa51a042033a0dcc7a5e077d155df1437..8476f4fb3857a6d3aee162a1ad656c49a8c3dd51 100644 (file)
@@ -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];