# tf_agents.distributions.utils.scale_distribution_to_spec

<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#L35-L37) |

Scales the given distribution to the bounds of the given spec.

    tf_agents.distributions.utils.scale_distribution_to_spec(
        distribution, spec
    )