mirror of
https://github.com/opencv/opencv.git
synced 2025-06-17 15:20:51 +08:00
Merge pull request #19738 from TolyaTalamanov:at/giebackend-blockingdesc-fix
This commit is contained in:
commit
3f52d0e46c
@ -131,9 +131,8 @@ inline IE::TensorDesc toIE(const cv::Mat &mat, cv::gapi::ie::TraitAs hint) {
|
|||||||
const size_t height = mat.size().height;
|
const size_t height = mat.size().height;
|
||||||
const size_t width = mat.size().width;
|
const size_t width = mat.size().width;
|
||||||
|
|
||||||
const size_t strideH = mat.step[0];
|
const size_t strideH = mat.step1();
|
||||||
|
IE::BlockingDesc bdesc({1, channels, height, width} /* dims */,
|
||||||
IE::BlockingDesc bdesc({1, height, width, channels} /* dims */,
|
|
||||||
{0, 2, 3, 1} /* order for NHWC */,
|
{0, 2, 3, 1} /* order for NHWC */,
|
||||||
0 /* offset */,
|
0 /* offset */,
|
||||||
{0, 0, 0, 0} /* offsets for dims */,
|
{0, 0, 0, 0} /* offsets for dims */,
|
||||||
|
Loading…
Reference in New Issue
Block a user