# tf.contrib.framework.load_variable

<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/framework/checkpoint_utils.py#L67-L81) |

Returns a Tensor with the contents of the given variable in the checkpoint.

    tf.contrib.framework.load_variable(
        checkpoint_dir, name
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `checkpoint_dir` | Directory with checkpoints file or path to checkpoint. |
| `name` | Name of the tensor to return. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| `Tensor` object. ||

<br />