Python wrappers
Public Python APIs implemented by this engine symbol.Compute for a square float tensor.
Validates that a is at least 2-D, square in the trailing two
axes, and float-typed; dispatches to the backend; and wires
InvBackward into the autograd graph (saving only the output)
when grad mode is active.
Shape
a:(..., N, N).- Output: same shape as
a.
See Also
solve_op : Often a better alternative — solves without
forming explicitly, with better conditioning.
det_op : Determinant, which uses inv_op in its backward.
Parameters
aTensorImplPtrInput matrix of shape
(..., N, N).Returns
TensorImplPtrInverse of identical shape to a.
Raises
ValueErrorIf
a is not square, fewer than 2-D, or non-float.LinAlgError(At backend level.) If is singular (LU produces a zero pivot).