tf.debugging.assert_all_finite

View source on GitHub

Assert that the tensor does not contain any NaN's or Inf's.

tf.debugging.assert_all_finite(
    x, message, name=None
)

Args:

Returns:

Same tensor as x.