MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / HandleNot

Method HandleNot

tensorflow/compiler/xla/service/algebraic_simplifier.cc:2300–2308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2298}
2299
2300Status AlgebraicSimplifierVisitor::HandleNot(HloInstruction* logical_not) {
2301 // not(not(x)) => x
2302 HloInstruction* x;
2303 if (Match(logical_not, m::Not(m::Not(m::Op(&x)))) &&
2304 ReplaceInstructionIfSameShape(logical_not, x)) {
2305 return Status::OK();
2306 }
2307 return Status::OK();
2308}
2309
2310Status AlgebraicSimplifierVisitor::HandleOr(HloInstruction* logical_or) {
2311 HloInstruction *lhs, *rhs;

Callers 1

VisitMethod · 0.45

Calls 3

NotFunction · 0.85
MatchFunction · 0.70
OpFunction · 0.70

Tested by

no test coverage detected