tf.keras.ops.isclose
Stay organized with collections
Save and categorize content based on your preferences.
Return whether two tensors are element-wise almost equal.
tf.keras.ops.isclose(
x1, x2, rtol=1e-05, atol=1e-08, equal_nan=False
)
Args |
x1
|
First input tensor.
|
x2
|
Second input tensor.
|
rtol
|
Relative tolerance.
|
atol
|
Absolute tolerance.
|
equal_nan
|
If True, element-wise NaNs are considered equal.
|
Returns |
|
Output boolean tensor.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2026-10-31 UTC.
[null,null,["Last updated 2026-10-31 UTC."],[],[]]