Python wrappers
Public Python APIs implemented by this engine symbol.Combine two real tensors into a complex tensor.
The result has dtype C64 and the same shape and device as the inputs.
Both inputs must be real-floating (F16 / F32 / F64); the
resulting interleaved storage holds element-wise.
Math
See Also
real_op, imag_op, conj_op
Parameters
reTensorImplPtrReal part. Must be a real-floating dtype.
imTensorImplPtrImaginary part. Same shape, device, and dtype family as
re.Returns
TensorImplPtrComplex (C64) tensor with the same shape and device as the inputs.
Raises
DtypeMismatchIf either input is not a real-floating dtype.
ShapeMismatchIf
re and im have different shapes.DeviceMismatchIf
re and im live on different devices.Notes
Backward is supplied by the Python autograd layer via real / imag
extraction of the incoming complex gradient; this entry point only
implements the forward.