tfp.experimental.distributions.marginal_fns.ps.tensorshape_util.assert_has_rank
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 .
|
Raises |
ValueError
|
If x does not represent a shape with the given rank .
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-11-21 UTC.
[null,null,["Last updated 2023-11-21 UTC."],[],[]]