# tf_agents.utils.common.check_tf1_allowed

<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#L70-L80) |

Raises an error if running in TF1 (non-eager) mode and this is disabled.

    tf_agents.utils.common.check_tf1_allowed()