Returns which elements of x are NaN.
meridian
.
backend
.
is_nan
(
x
:
Annotated
[
Any
,
TV_IsNan_T
],
name
=
None
)
->
Annotated
[
Any
,
_atypes
.
Bool
]
Example:
x
=
tf
.
constant
([
5.0
,
np
.
nan
,
6.8
,
np
.
nan
,
np
.
inf
])
tf
.
math
.
is_nan
(
x
)
==
> [
False
,
True
,
False
,
True
,
False
]
Returns
A
Tensor
of type bool
.numpy compatibility
Equivalent to np.isnan


