# tf_agents.utils.common.create_variable

<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#L205-L248) |

Create a variable.

    tf_agents.utils.common.create_variable(
        name,
        initial_value=0,
        shape=(),
        dtype=tf.int64,
        use_local_variable=False,
        trainable=False,
        initializer=None,
        unique_name=True
    )