Relaxes SharedOpOptimization restrictions (#24907)
### Details: - *Relaxes SharedOpOptimization restrictions on Constant comparison* ### Tickets: - *@vladimir-paramuzov*
This commit is contained in:
parent
6e67110da1
commit
a42da25019
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue