tf.debugging.assert_type

View source on GitHub

Asserts that the given Tensor is of the specified type.

tf.debugging.assert_type(
    tensor, tf_type, message=None, name=None
)

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

Args:

Raises: