| 573 | } |
| 574 | |
| 575 | Status AlgebraicSimplifierVisitor::HandleAbs(HloInstruction* abs) { |
| 576 | HloInstruction* abs_operand = abs->mutable_operand(0); |
| 577 | VLOG(10) << "trying transform [Abs(A) => A] " << abs->ToString() |
| 578 | << " Abs operand is: " << abs_operand->ToString(); |
| 579 | if (IsNonNegative(abs->operand(0), options_)) { |
| 580 | return ReplaceInstruction(abs, abs_operand); |
| 581 | } |
| 582 | return Status::OK(); |
| 583 | } |
| 584 | |
| 585 | Status AlgebraicSimplifierVisitor::HandleAdd(HloInstruction* add) { |
| 586 | HloInstruction *lhs, *rhs; |
no test coverage detected