View source on GitHub |
Assert the condition x != y
holds for all elements.
tf.debugging.assert_none_equal(
x, y, summarize=None, message=None, name=None
)
This Op checks that x[i] != y[i]
holds for every pair of (possibly
broadcast) elements of x
and y
. If both x
and y
are empty, this is
trivially satisfied.
If any elements of x
and y
are equal, message
, as well as the first
summarize
entries of x
and y
are printed, and InvalidArgumentError
is raised.
Returns | |
---|---|
Op that raises InvalidArgumentError if x != y is ever False. This can
be used with tf.control_dependencies inside of tf.function s to block
followup computation until the check has executed.
|
eager compatibility
returns None