# tf_agents.distributions.utils.get_parameters

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/agents/blob/v0.19.0/tf_agents/distributions/utils.py#L273-L320) |

Creates a recursive `Params` object from `value`.

    tf_agents.distributions.utils.get_parameters(
        value: Any
    ) -> https://www.tensorflow.org/agents/api_docs/python/tf_agents/distributions/utils/Params

The `Params` object can be converted back to an object of type `type(value)`
with `make_from_parameters`. For more details, see the docstring of
`Params`.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `value` | Typically a user provides `tfp.Distribution`, `tfp.Bijector`, or [`tf.linalg.LinearOperator`](https://www.tensorflow.org/api_docs/python/tf/linalg/LinearOperator), but this can be any Python object. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| An instance of `Params`. ||

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `TypeError` | If `value.parameters` exists, is not `None`, but but is also not a `Mapping` (e.g. a `dict`). |

<br />