tf.keras.ops.fabs

Compute the absolute values element-wise.

Integer or boolean inputs are automatically promoted to the default floating-point type. Complex values are not supported.

x Input tensor.

An array containing the absolute value of each element in x.

>>> x = keras.ops.convert_to_tensor([-1, 2], dtype="int32")
</td>
</tr>

</table>


>>> keras.ops.fabs(x)
array([1., 2.], dtype=float32)
 ```