# tf_agents.specs.distribution_spec.nested_distributions_from_specs

<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/specs/distribution_spec.py#L104-L119) |

Builds a nest of distributions from a nest of specs.

    tf_agents.specs.distribution_spec.nested_distributions_from_specs(
        specs, parameters
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `specs` | A nest of distribution specs. |
| `parameters` | A nest of distribution kwargs. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| Nest of distribution instances with the same structure as the given specs. ||

<br />