|TensorFlow 1 version||View source on GitHub|
x has rank of at least
tf.debugging.assert_rank_at_least( x, rank, message=None, name=None )
This Op checks that the rank of
x is greater or equal to
x has a rank lower than
message, as well as the shape of
are printed, and
InvalidArgumentError is raised.
rank: Scalar integer
message: A string to prefix to the default message.
name: A name for this operation (optional). Defaults to "assert_rank_at_least".
x has specified rank or higher.
If static checks determine
x has correct rank, a
no_op is returned.
This can be used with
tf.control_dependencies inside of
to block followup computation until the check has executed.
xdoes not have rank at least
rank, but the rank cannot be statically determined.
ValueError: If static checks determine
xhas mismatched rank.