assert_rank_at_least

tfsnippet.ops.assert_rank_at_least(x, ndims, message=None, name=None)

Assert the rank of x is at least ndims.

Parameters:
  • x – A tensor.
  • ndims (int or tf.Tensor) – An integer, or a 0-d integer tensor.
  • message – Message to display when assertion failed.
  • name (str) – Default name of the name scope. If not specified, generate one according to the method name.
Returns:

The TensorFlow assertion operation,

or None if can be statically asserted.

Return type:

tf.Operation or None