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

Method HandleImag

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

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

Source from the content-addressed store, hash-verified

2661
2662// Imag(Complex(r, i)) -> i
2663Status AlgebraicSimplifierVisitor::HandleImag(HloInstruction* imag) {
2664 HloInstruction* op;
2665 if (Match(imag, m::Imag(m::Complex(m::Op(), m::Op(&op))))) {
2666 return ReplaceInstruction(imag, op);
2667 }
2668 return Status::OK();
2669}
2670
2671Status AlgebraicSimplifierVisitor::HandleIota(HloInstruction* instruction) {
2672 // iota -> zero if the iota dimension never produces an element other than

Callers

nothing calls this directly

Calls 4

MatchFunction · 0.70
OpFunction · 0.70
ImagFunction · 0.50
ComplexFunction · 0.50

Tested by

no test coverage detected