tf.keras.ops.inv

Computes the inverse of a square tensor.

Main aliases

tf.keras.ops.linalg.inv

x Input tensor of shape (..., M, M).

A tensor of shape (..., M, M) representing the inverse of x.