tfp.experimental.distributions.marginal_fns.ps.tensorshape_util.is_compatible_with

Returns True iff x is compatible with other.

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

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

is_compatible bool indicating of the shapes are compatible.