Relaxes SharedOpOptimization restrictions (#24907)

### Details:
 - *Relaxes SharedOpOptimization restrictions on Constant comparison*

### Tickets:
 - *@vladimir-paramuzov*
This commit is contained in:
Evgenya Nugmanova 2024-06-09 11:31:24 +04:00 committed by GitHub
parent 6e67110da1
commit a42da25019
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -66,8 +66,7 @@ bool inputs_from_same_source_or_equal_constants(const std::shared_ptr<Node>& lhs
return false;
if (lhs_constant->get_element_type() != rhs_constant->get_element_type())
return false;
const auto& lhs_shape = lhs_constant->get_shape();
if (lhs_shape != rhs_constant->get_shape() || shape_size(lhs_shape) > 10)
if (lhs_constant->get_shape() != rhs_constant->get_shape())
return false;
if (memcmp(lhs_constant->get_data_ptr(), rhs_constant->get_data_ptr(), lhs_constant->get_byte_size()) != 0)
return false;