Skip to content
class

ConjBackward

ConjBackward

Python wrappers

Public Python APIs implemented by this engine symbol.

Return the element-wise complex conjugate of a tensor.

For complex input, produces a fresh tensor of the same dtype whose imaginary part is negated. For any real dtype the operator is a no-op (the conjugate of a real number equals itself) and the backend short-circuits the dispatch.

Math

yk=zk‾ y_k = \overline{z_k}

See Also

real_op, imag_op, complex_op Backward for conj — see RealBackward. Conjugation is its own inverse, so the gradient is conjugated back.

Parameters

aTensorImplPtr
Input tensor. May be any dtype; only complex input produces a non-trivial transformation.

Notes

Native backward applies another conj on the incoming gradient, consistent with the Wirtinger calculus convention adopted by the reference framework.

Instance methods

2
fn

apply_for_graph

int apply_for_graph(const int & grad_out)