# tf.raw_ops.GetSessionTensor

<br />

Get the value of the tensor specified by its handle.

#### View aliases


**Compat aliases for migration**

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

[`tf.compat.v1.raw_ops.GetSessionTensor`](https://www.tensorflow.org/api_docs/python/tf/raw_ops/GetSessionTensor)

<br />

    tf.raw_ops.GetSessionTensor(
        handle, dtype, name=None
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `handle` | A `Tensor` of type `string`. The handle for a tensor stored in the session state. |
| `dtype` | A [`tf.DType`](https://www.tensorflow.org/versions/r2.6/api_docs/python/tf/dtypes/DType). The type of the output value. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A `Tensor` of type `dtype`. ||

<br />