[IE CLDNN] Fix stack-use-after-scope issue (#2150)

This commit is contained in:
Sergey Shlyapnikov 2020-09-10 18:59:15 +03:00 committed by GitHub
parent 18abd6cfd7
commit bdd0247362
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -614,8 +614,8 @@ void prepare_primitive_fusing::fuse_simple_primitives(program_impl &p) {
std::vector<bool> can_fuse_parents = { can_fuse_parent1, can_fuse_parent2 };
auto p1_raw_size = parent1->get_output_layout().size.raw;
auto p2_raw_size = parent2->get_output_layout().size.raw;
auto p1_raw_size = parent1->get_output_layout().size.sizes();
auto p2_raw_size = parent2->get_output_layout().size.sizes();
for (unsigned k = 0; k < p1_raw_size.size(); k++) {
if (p1_raw_size[k] < p2_raw_size[k]) {
if (p1_raw_size[k] != 1)