# tf.contrib.framework.create_global_step

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/framework/python/ops/variables.py#L128-L144) |

Create global step tensor in graph. (deprecated)

    tf.contrib.framework.create_global_step(
        graph=None
    )

> [!WARNING]
> **Warning:** THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Please switch to tf.train.create_global_step

This API is deprecated. Use core framework training version instead.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `graph` | The graph in which to create the global step tensor. If missing, use default graph. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| Global step tensor. ||

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `ValueError` | if global step tensor is already defined. |

<br />