tfsnippet.ops.
assert_rank
Assert the rank of x is ndims.
or None if can be statically asserted.
tf.Operation or None