tf.debugging.assert_integer

Assert that x is of integer dtype.

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.

xA Tensor.
messageA string to prefix to the default message.
nameA name for this operation (optional). Defaults to "assert_integer".

TypeErrorIf x.dtype is not a non-quantized integer type.