<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/probability/blob/v0.25.0/tensorflow_probability/python/experimental/nn/util/utils.py#L339-L364) |

Like [`tf.expand_dims`](https://www.tensorflow.org/api_docs/python/tf/expand_dims) but accepts a vector of axes to expand.

    tfp.experimental.nn.util.expand_dims(
        axis, name=None
    )