@tf_export('train.load_variable')
def load_variable(ckpt_dir_or_file, name):
    'Returns the tensor value of the given variable in the checkpoint.\n\n  Args:\n    ckpt_dir_or_file: Directory with checkpoints file or path to checkpoint.\n    name: Name of the variable to return.\n\n  Returns:\n    A numpy `ndarray` with a copy of the value of this variable.\n  '
    if name.endswith(':0'):
        name = name[:(- 2)]
    reader = load_checkpoint(ckpt_dir_or_file)
    return reader.get_tensor(name)
Returns the tensor value of the given variable in the checkpoint.

Args:
  ckpt_dir_or_file: Directory with checkpoints file or path to checkpoint.
  name: Name of the variable to return.

Returns:
  A numpy `ndarray` with a copy of the value of this variable.
@tf_export('train.load_variable')
def load_variable(ckpt_dir_or_file, name):
    'Returns the tensor value of the given variable in the checkpoint.\n\n  Args:\n    ckpt_dir_or_file: Directory with checkpoints file or path to checkpoint.\n    name: Name of the variable to return.\n\n  Returns:\n    A numpy `ndarray` with a copy of the value of this variable.\n  '
    if name.endswith(':0'):
        name = name[:(- 2)]
    reader = load_checkpoint(ckpt_dir_or_file)
    return reader.get_tensor(name)