tf.math.reciprocal

Computes the reciprocal of x element-wise.

tf.math.reciprocal(
    x, name=None
)

I.e., \(y = 1 / x\).

Args:

Returns:

A Tensor. Has the same type as x.