Attend the Women in ML Symposium on December 7 Register now

tfp.experimental.distributions.marginal_fns.ps.tensorshape_util.as_list

Stay organized with collections Save and categorize content based on your preferences.

Returns a list of integers or None for each dimension.

For more details, see help(tf.TensorShape.as_list).

x object representing a shape; convertible to tf.TensorShape.

shape_as_list list of int or None values representing each dimensions size if known.

ValueError If x has unknown rank.