Skip to content

Commit 42d669f

Browse files
jane-intelpraasz
andauthored
Apply suggestions from code review
Co-authored-by: Pawel Raasz <pawel.raasz@intel.com>
1 parent 7dd036f commit 42d669f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/src/op/constant.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -660,13 +660,13 @@ bool Constant::has_evaluate() const {
660660
bool Constant::evaluate_lower(TensorVector& outputs) const {
661661
outputs.resize(1);
662662
outputs[0] = get_tensor_view();
663-
return get_data_ptr();
663+
return get_data_ptr() != nullptr;
664664
}
665665

666666
bool Constant::evaluate_upper(TensorVector& outputs) const {
667667
outputs.resize(1);
668668
outputs[0] = get_tensor_view();
669-
return get_data_ptr();
669+
return get_data_ptr() != nullptr;
670670
}
671671

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

0 commit comments

Comments
 (0)