if (!constLb.has_value() || !constOtherLb.has_value())
return failure();
std::fill(minLb.begin(), minLb.end(), 0);
- minLb.back() = std::min(constLb.value(), constOtherLb.value());
+ minLb.back() = std::min(*constLb, *constOtherLb);
}
// Do the same for ub's but max of upper bounds. Identify max.
if (!constUb.has_value() || !constOtherUb.has_value())
return failure();
std::fill(maxUb.begin(), maxUb.end(), 0);
- maxUb.back() = std::max(constUb.value(), constOtherUb.value());
+ maxUb.back() = std::max(*constUb, *constOtherUb);
}
std::fill(newLb.begin(), newLb.end(), 0);
// Division value required, but not found yet.
if (!divValues[j])
break;
- divVal += dividend[getDivOffset() + j] * divValues[j].value();
+ divVal += dividend[getDivOffset() + j] * *divValues[j];
}
// We have some division values that are still not found, but are required
Optional<int64_t> diff =
cstWithShapeBounds.getConstantBoundOnDimSize64(d, &lb, &lbDivisor);
if (diff.has_value()) {
- diffConstant = diff.value();
+ diffConstant = *diff;
assert(diffConstant >= 0 && "Dim size bound can't be negative");
assert(lbDivisor > 0);
} else {