From c434ca74a2b6b6a497237d60a7648dde3164a7da Mon Sep 17 00:00:00 2001 From: Anatoliy Talamanov Date: Mon, 22 Mar 2021 13:57:57 +0300 Subject: [PATCH] Blocking dims order fix --- modules/gapi/src/backends/ie/giebackend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gapi/src/backends/ie/giebackend.cpp b/modules/gapi/src/backends/ie/giebackend.cpp index ecf37cf360..d4131c0be9 100644 --- a/modules/gapi/src/backends/ie/giebackend.cpp +++ b/modules/gapi/src/backends/ie/giebackend.cpp @@ -132,7 +132,7 @@ inline IE::TensorDesc toIE(const cv::Mat &mat, cv::gapi::ie::TraitAs hint) { const size_t width = mat.size().width; const size_t strideH = mat.step1(); - IE::BlockingDesc bdesc({1, channels, height, width} /* dims */, + IE::BlockingDesc bdesc({1, height, width, channels} /* blocking dims */, {0, 2, 3, 1} /* order for NHWC */, 0 /* offset */, {0, 0, 0, 0} /* offsets for dims */,