View source on GitHub |
Returns a shape combining the information in x
and other
.
tfp.experimental.distributions.marginal_fns.ps.tensorshape_util.merge_with(
x, 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)
.
Args | |
---|---|
x
|
object representing a shape; convertible to tf.TensorShape .
|
other
|
object representing a shape; convertible to tf.TensorShape .
|
Returns | |
---|---|
merged_shape
|
shape having type(x) containing the combined information of
x and other .
|
Raises | |
---|---|
ValueError
|
If x and other are not compatible.
|