diff options
author | Ting Fu <ting.fu@intel.com> | 2021-01-18 11:42:12 +0800 |
---|---|---|
committer | Guo, Yejun <yejun.guo@intel.com> | 2021-01-18 13:09:21 +0800 |
commit | 946fcd45083461c5eea6c4806823bcb383608cab (patch) | |
tree | 509802b99aabe9267d9b83f8dd566b28702f48b0 /libavfilter | |
parent | 71ce5c32f0bfcbe053bc9110923bbe7479c358e3 (diff) |
dnn/openvino: remove unnecessary code
Signed-off-by: Ting Fu <ting.fu@intel.com>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/dnn/dnn_backend_openvino.c | 8 |
1 files changed, 0 insertions, 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]; |