| 3217 | } |
| 3218 | |
| 3219 | XlaOp Complex(const XlaOp lhs, const XlaOp rhs, |
| 3220 | absl::Span<const int64> broadcast_dimensions) { |
| 3221 | return lhs.builder()->BinaryOp(HloOpcode::kComplex, lhs, rhs, |
| 3222 | broadcast_dimensions); |
| 3223 | } |
| 3224 | |
| 3225 | XlaOp Conj(const XlaOp operand) { |
| 3226 | return Complex(Real(operand), Neg(Imag(operand))); |