# tf.estimator.SessionRunValues

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.13.1/tensorflow/python/training/session_run_hook.py#L262-L283) |

Contains the results of `Session.run()`. (deprecated)

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.estimator.SessionRunValues`](https://www.tensorflow.org/api_docs/python/tf/estimator/SessionRunValues), [`tf.compat.v1.train.SessionRunValues`](https://www.tensorflow.org/api_docs/python/tf/estimator/SessionRunValues)

<br />

> [!WARNING]
> **Deprecated:** THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use tf.keras instead.

In the future we may use this object to add more information about result of
run without changing the Hook API.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `results` | The return values from `Session.run()` corresponding to the fetches attribute returned in the RunArgs. Note that this has the same shape as the RunArgs fetches. For example: fetches = global_step_tensor =\> results = nparray(int) fetches = \[train_op, summary_op, global_step_tensor\] =\> results = \[None, nparray(string), nparray(int)\] fetches = {'step': global_step_tensor, 'summ': summary_op} =\> results = {'step': nparray(int), 'summ': nparray(string)} |
| `options` | `RunOptions` from the `Session.run()` call. |
| `run_metadata` | `RunMetadata` from the `Session.run()` call. |

<br />

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `results` | A `namedtuple` alias for field number 0 |
| `options` | A `namedtuple` alias for field number 1 |
| `run_metadata` | A `namedtuple` alias for field number 2 |

<br />