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

Method HandleReal

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

Real(Complex(r, i)) -> r

Source from the content-addressed store, hash-verified

2652
2653// Real(Complex(r, i)) -> r
2654Status AlgebraicSimplifierVisitor::HandleReal(HloInstruction* real) {
2655 HloInstruction* op;
2656 if (Match(real, m::Real(m::Complex(m::Op(&op), m::Op())))) {
2657 return ReplaceInstruction(real, op);
2658 }
2659 return Status::OK();
2660}
2661
2662// Imag(Complex(r, i)) -> i
2663Status AlgebraicSimplifierVisitor::HandleImag(HloInstruction* imag) {

Callers

nothing calls this directly

Calls 4

MatchFunction · 0.70
OpFunction · 0.70
RealFunction · 0.50
ComplexFunction · 0.50

Tested by

no test coverage detected