Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

Update transpose reshape_2d algorithm to block structure (#29830)

Qiujiaob0c7c1b7cb28
diff --git a/src/core/reference/src/op/reshape.cpp b/src/core/reference/src/op/reshape.cpp
index 7812364693c..082f8a8cc3a 100644
--- a/src/core/reference/src/op/reshape.cpp
+++ b/src/core/reference/src/op/reshape.cpp
@@ -55,7 +55,7 @@ void reshape_2D(const char* in,
}
}
} else {
- ov::parallel_for2d(out_shape[0], out_shape[1], [in, out, &out_shape, elem_size](size_t i, size_t j) {
+ ov::parallel_for2d_dynamic(out_shape[0], out_shape[1], [in, out, &out_shape, elem_size](size_t i, size_t j) {
size_t in_off = j * out_shape[0] + i;
size_t out_off = i * out_shape[1] + j;
copy_element(out + out_off * elem_size, in + in_off * elem_size, elem_size);