# tf_agents.specs.distribution_spec.deterministic_distribution_from_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/specs/distribution_spec.py#L99-L101) |

Creates a Deterministic distribution_spec from a tensor_spec.

    tf_agents.specs.distribution_spec.deterministic_distribution_from_spec(
        spec
    )