Python wrappers
Public Python APIs implemented by this engine symbol.Combine two real tensors into a complex tensor.
The result is C64 for F32 parts or C128 for CPU F64 parts, on the input device. Both inputs must be real-floating; half formats widen to F32. The resulting interleaved storage holds element-wise.
Math
See Also
real_op, imag_op, conj_op
Backward for complex — see RealBackward. The inverse of
the two projections: each operand takes the lane it supplied.
Parameters
reTensorImplPtrReal part. Must be a real-floating dtype.
imTensorImplPtrImaginary part. Broadcastable shape, same device and widened dtype as re.
Raises
DtypeMismatchIf either input is not a real-floating dtype.
ShapeMismatchIf
re and im cannot broadcast.DeviceMismatchIf
re and im live on different devices.Notes
Native backward extracts both lanes of the incoming complex gradient. Graph mode uses the same projections to preserve higher derivatives.