# tf_agents.specs.is_discrete

<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/tensor_spec.py#L52-L56) |

#### View aliases


**Main aliases**

[`tf_agents.specs.tensor_spec.is_discrete`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/specs/is_discrete)

<br />

    tf_agents.specs.is_discrete(
        spec
    )