View source on GitHub |
Raises exception if x
and other
do not represent the same shape.
tfp.experimental.distributions.marginal_fns.ps.tensorshape_util.assert_is_compatible_with(
x, other
)
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)
.
Args | |
---|---|
x
|
object representing a shape; convertible to tf.TensorShape .
|
other
|
object representing a shape; convertible to tf.TensorShape .
|
Returns | |
---|---|
None |
Raises | |
---|---|
ValueError
|
If x and other do not represent the same shape.
|