Attend the Women in ML Symposium on December 7 Register now

tfp.experimental.distributions.marginal_fns.ps.tensorshape_util.merge_with

Stay organized with collections Save and categorize content based on your preferences.

Returns a shape combining the information in x and other.

The dimensions in x and other are merged elementwise, according to the rules defined for tf.Dimension.merge_with().

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

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

merged_shape shape having type(x) containing the combined information of x and other.

ValueError If x and other are not compatible.