mindspore.Tensor.mH

查看源文件
property mindspore.Tensor.mH

访问此属性等价于调用self.adjoint()方法。

详情请参考 mindspore.ops.adjoint()

样例:

>>> from mindspore import Tensor
>>> import numpy as np
>>> x = Tensor(np.array([[0. + 0.j, 1. + 1.j], [2. + 2.j, 3. + 3.j]]))
>>> output = x.mH
>>> print(output)
[[0.-0.j 2.-2.j]
 [1.-1.j 3.-3.j]]