tf.keras.ops.isreal
Stay organized with collections
Save and categorize content based on your preferences.
Test element-wise for real numbers.
tf.keras.ops.isreal(
x
)
Returns |
|
Output boolean tensor.
|
Example:
from keras import ops
x = ops.array([1+1j, 1+0j, 4.5, 3, 2, 2j], dtype="complex64")
ops.isreal(x)
array([False, True, True, True, True, False])
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."],[],[]]