View source on GitHub |
Raises an exception if x
is not compatible with the given rank
.
tfp.experimental.distributions.marginal_fns.ps.tensorshape_util.assert_has_rank(
x, rank
)
For more details, see help(tf.TensorShape.assert_has_rank)
.
Args | |
---|---|
x
|
object representing a shape; convertible to tf.TensorShape .
|
rank
|
an int representing the minimum required rank of x .
|
Returns | |
---|---|
None |
Raises | |
---|---|
ValueError
|
If x does not represent a shape with the given rank .
|