[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-11-21 UTC."],[],[],null,["# tfp.experimental.distributions.marginal_fns.ps.tensorshape_util.rank\n\n\u003cbr /\u003e\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/probability/blob/v0.23.0/tensorflow_probability/python/internal/tensorshape_util.py#L265-L282) |\n\nReturns the rank implied by this shape, or `None` if it is unspecified. \n\n tfp.experimental.distributions.marginal_fns.ps.tensorshape_util.rank(\n x\n )\n\nFor more details, see `help(tf.TensorShape.rank)`.\n| **Note:** This is not the rank of the shape itself, viewed as a Tensor, which would always be 1; rather, it's the rank of every Tensor of the shape given by `x`.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|-----|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `x` | object representing a shape; anything convertible to [`tf.TensorShape`](https://www.tensorflow.org/api_docs/python/tf/TensorShape), or a `Tensor` (interpreted as an in-graph computed shape). |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|--------|---------------------------------------------------------------------------------------|\n| `rank` | `int` representing the number of shape dimensions, or `None` if not statically known. |\n\n\u003cbr /\u003e"]]