Skip to content

Commit b12d255

Browse files
author
Evgenya Nugmanova
authored
Revert Cherry-pick #29451 (#29481) (#29595)
This reverts commit d18619a.
1 parent e1ec5a6 commit b12d255

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/core/src/op/constant.cpp

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -658,19 +658,10 @@ bool Constant::has_evaluate() const {
658658
}
659659

660660
bool Constant::evaluate_lower(TensorVector& outputs) const {
661-
if (!outputs.empty() && outputs[0].get_element_type() != m_element_type)
662-
return evaluate(outputs, {}); // for TypeRelaxed<Constant>
663-
outputs.resize(1);
664-
outputs[0] = get_tensor_view();
665-
return get_data_ptr() != nullptr;
661+
return evaluate(outputs, {});
666662
}
667-
668663
bool Constant::evaluate_upper(TensorVector& outputs) const {
669-
if (!outputs.empty() && outputs[0].get_element_type() != m_element_type)
670-
return evaluate(outputs, {}); // for TypeRelaxed<Constant>
671-
outputs.resize(1);
672-
outputs[0] = get_tensor_view();
673-
return get_data_ptr() != nullptr;
664+
return evaluate(outputs, {});
674665
}
675666

676667
bool Constant::can_constant_fold(const OutputVector& input_values) const {

0 commit comments

Comments
 (0)