tfp.experimental.distributions.marginal_fns.ps.tensorshape_util.assert_is_compatible_with

Raises exception if x and other do not represent the same shape.

This method can be used to assert that there exists a shape that both x and other represent.

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

x object representing a shape; convertible to tf.TensorShape.
other object representing a shape; convertible to tf.TensorShape.

None

ValueError If x and other do not represent the same shape.