tf.compat.v1.assert_rank

Assert x has rank equal to rank.