From be065c0144aa191fc664167f8ee7649e4e999738 Mon Sep 17 00:00:00 2001 From: Anton Voronov Date: Tue, 10 Nov 2020 11:25:12 +0300 Subject: [PATCH] [CPU] fixed strides filling in blocking desc (#2353) --- inference-engine/src/mkldnn_plugin/mkldnn_memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inference-engine/src/mkldnn_plugin/mkldnn_memory.cpp b/inference-engine/src/mkldnn_plugin/mkldnn_memory.cpp index 72a511af56f..0f2b2f28ecb 100644 --- a/inference-engine/src/mkldnn_plugin/mkldnn_memory.cpp +++ b/inference-engine/src/mkldnn_plugin/mkldnn_memory.cpp @@ -1392,7 +1392,7 @@ MKLDNNMemoryDesc::MKLDNNMemoryDesc(const TensorDesc& tDesc): if (notDefault) { for (size_t i = 0; i < strides.size() && i < desc.data.ndims; i++) { - desc.data.layout_desc.blocking.strides[0][i] = static_cast(strides[order[i]]); + desc.data.layout_desc.blocking.strides[0][order[i]] = static_cast(strides[i]); } } }