tf.debugging.assert_integer

View source on GitHub

Assert that x is of integer dtype.

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

If x has a non-integer type, message, as well as the dtype of x are printed, and InvalidArgumentError is raised.

This can always be checked statically, so this method returns nothing.

Args:

Raises: