|TensorFlow 1 version||View source on GitHub|
Assert the condition
x >= 0 holds element-wise.
tf.debugging.assert_non_negative( x, message=None, summarize=None, name=None )
This Op checks that
x[i] >= 0 holds for every element of
empty, this is trivially satisfied.
x is not >= 0 everywhere,
message, as well as the first
x are printed, and
InvalidArgumentError is raised.
message: A string to prefix to the default message.
summarize: Print this many entries of each tensor.
name: A name for this operation (optional). Defaults to "assert_non_negative".
InvalidArgumentError: if the check can be performed immediately and
x[i] >= 0is False. The check can be performed immediately during eager execution or if
xis statically known.