View source on GitHub |
Returns the total number of elements, or None
for incomplete shapes.
tfp.experimental.distributions.marginal_fns.ps.tensorshape_util.num_elements(
x
)
For more details, see help(tf.TensorShape.num_elements)
.
Args | |
---|---|
x
|
object representing a shape; convertible to tf.TensorShape .
|
Returns | |
---|---|
num_elements
|
int representing the total number of elements implied by
shape x .
|