View source on GitHub |
Returns a list
of integers or None
for each dimension.
tfp.experimental.distributions.marginal_fns.ps.tensorshape_util.as_list(
x
)
For more details, see help(tf.TensorShape.as_list)
.
Args | |
---|---|
x
|
object representing a shape; convertible to tf.TensorShape .
|
Returns | |
---|---|
shape_as_list
|
list of int or None values representing each dimensions
size if known.
|
Raises | |
---|---|
ValueError
|
If x has unknown rank.
|