tfp.experimental.distributions.marginal_fns.ps.tensorshape_util.assert_has_rank

Raises an exception if x is not compatible with the given rank.

For more details, see help(tf.TensorShape.assert_has_rank).

x object representing a shape; convertible to tf.TensorShape.
rank an int representing the minimum required rank of x.

None

ValueError If x does not represent a shape with the given rank.