# Module: tf_agents.specs.distribution_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) |

Spec definition for tensorflow_probability.Distribution.

## Classes

[`class DistributionSpec`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/specs/distribution_spec/DistributionSpec): Describes a tfp.distribution.Distribution.

## Functions

[`deterministic_distribution_from_spec(...)`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/specs/distribution_spec/deterministic_distribution_from_spec): Creates a Deterministic distribution_spec from a tensor_spec.

[`nested_distributions_from_specs(...)`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/specs/distribution_spec/nested_distributions_from_specs): Builds a nest of distributions from a nest of specs.

<br />

<br />

<br />

| ## Other Members ||
|---|---|
| absolute_import | Instance of `__future__._Feature` |
| division | Instance of `__future__._Feature` |
| print_function | Instance of `__future__._Feature` |

<br />