ivy.value_is_nan(x: Union[ivy.Array, ivy.NativeArray, numbers.Number], include_infs: bool = True) → bool[source]

Determine whether the single valued array or scalar is of nan type

  • x (array) – The input to check Input array.

  • include_infs (bool, optional) – Whether to include infs and -infs in the check. Default is True.

:return Boolean as to whether the input value is a nan or not.

Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty