# tf.contrib.training.get_or_create_eval_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/python/training/evaluation.py#L37-L61) |

Gets or creates the eval step `Tensor`.

    tf.contrib.training.get_or_create_eval_step()

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A `Tensor` representing a counter for the evaluation step. ||

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `ValueError` | If multiple `Tensors` have been added to the [`tf.GraphKeys.EVAL_STEP`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/GraphKeys#EVAL_STEP) collection. |

<br />