模型开发接口
推理部署接口
API 相关说明
Computes the inverse of a batch of matrices; input must has shape […, n, n].
inp (Tensor) – input tensor.
Tensor
output tensor.
Examples
>>> import numpy as np >>> data = Tensor([[1.0, 0.0], [1.0, 1.0]]) >>> out = F.matinv(data) >>> out.numpy() array([[ 1., 0.], [-1., 1.]], dtype=float32)
previous
megengine.functional.dot
next
megengine.functional.matmul