数据显示:网络谣言中食品安全谣言占45% 该治治了

paddle.linalg. inv ( x: Tensor, name: str | None = None ) Tensor
百度 广东队或许是CBA罕见的没有主场哨,裁判本场多次判罚对广东不利,甚至还激怒了阿联!但哪怕这样的裁判,还是帮不了新疆!布拉切的回归,彻底打破了球队此前的化学反应!虽然他得到全场最高分,但占用了太多球权!而小外援亚当斯也是不含糊,拿球过来就是胡扔,简直就是在玩双外援太独,国内球员折返跑,这是新疆队本场展现给球迷的,简直是一盘散沙!而在替补席的球员,看到外援屡屡的无脑出手,甚至气到摔毛巾!他们是真的想赢球,但教练不给机会上场,就算给了机会,球权一直在外援手中,上场又有什么用?新疆两场输了整整40分!上赛季夺冠后,李秋平直言广东能打球的人太少,易建联最好防,朱芳雨不用管,只有周鹏需要重视!但广东队彻底让李秋平吃了自大的亏,无奈的李秋平,最后甚至坐着看完了比赛。

Takes the inverse of the square matrix. A square matrix is a matrix with the same number of rows and columns. The input can be a square matrix (2-D Tensor) or batches of square matrices.

Parameters
  • x (Tensor) – The input tensor. The last two dimensions should be equal. When the number of dimensions is greater than 2, it is treated as batches of square matrix. The data type can be float32, float64, complex64, complex128.

  • name (str|None, optional) – Name for the operation (optional, default is None). For more information, please refer to Name.

Returns

A Tensor holds the inverse of x. The shape and data type

is the same as x.

Return type

Tensor

Examples

>>> import paddle

>>> mat = paddle.to_tensor([[2, 0], [0, 2]], dtype='float32')
>>> inv = paddle.inverse(mat)
>>> print(inv)
Tensor(shape=[2, 2], dtype=float32, place=Place(cpu), stop_gradient=True,
[[0.50000000, 0.        ],
 [0.        , 0.50000000]])