mindspore.ops.adjoint

View Source On Gitee
mindspore.ops.adjoint(x)[source]

Calculate the conjugation of tensor element-wise, and transpose the last two dimensions.

Parameters

x (Tensor) – The input tensor.

Returns

Tensor

Supported Platforms:

Ascend GPU CPU

Examples

>>> import mindspore
>>> x = mindspore.tensor(([[0. + 0.j, 1. + 1.j], [2. + 2.j, 3. + 3.j]]), mindspore.complex128)
>>> mindspore.ops.adjoint(x)
Tensor(shape=[2, 2], dtype=Complex128, value=
[[0-0j, 2-2j],
 [1-1j, 3-3j]])