# tf_agents.utils.common.spec_means_and_magnitudes

<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/utils/common.py#L562-L572) |

Get the center and magnitude of the ranges in action spec.

    tf_agents.utils.common.spec_means_and_magnitudes(
        action_spec
    )