tf.keras.ops.isclose

Return whether two tensors are element-wise almost equal.

x1 First input tensor.
x2 Second input tensor.
rtol Relative tolerance.
atol Absolute tolerance.
equal_nan If True, element-wise NaNs are considered equal.

Output boolean tensor.