Assert the condition
x >= 0 holds element-wise.
tf.compat.v2.debugging.assert_non_negative( x, message=None, summarize=None, name=None )
This Op checks that
x[i] >= 0 holds for every element of
x is empty, this is trivially satisfied.
x is not >= 0 everywhere,
message, as well as the first
summarize entries of
x are printed, and
InvalidArgumentError is raised.
| || Numeric |
| ||A string to prefix to the default message.|
| ||Print this many entries of each tensor.|
| ||A name for this operation (optional). Defaults to "assert_non_negative".|
| Op raising |
| || if the check can be performed immediately and |
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.