class_docstr: Restore a tensorflow checkpoint saved by :class:`tf.train.Saver` or :class:`ModelSaver`.
class_docstr_tok: ["Restore","a","tensorflow","checkpoint","saved","by",":","class",":","`","tf.train.Saver","`","or",":","class",":","`","ModelSaver","`","."]
code: def _get_restore_dict(self):
      var_dict = {}
  
      def f(reader, name, v):
          name = reader.get_real_name(name)
          assert (
              name not in var_dict
          ), "Restore conflict: {} and {}".format(
              v.name, var_dict[name].name
          )
          var_dict[name] = v
  
      self._match_vars(f)
      return var_dict
  
imports: import os
  import numpy
  import six
  from ..compat import tfv1
  from ..utils import logger
  from .common import get_op_tensor_name
  from .varmanip import SessionUpdate, get_checkpoint_path, get_savename_from_varname, is_training_name
label_desc: Use image node_id 6 for calling the SaverRestore obj's underlying member method code with example usage: obj._get_restore_dict() and returns: var_dict