class_docstr: An adapter to work around old checkpoint format, where the keys are op
  names instead of tensor names (with :0).
class_docstr_tok: ["An","adapter","to","work","around","old","checkpoint","format",",","where","the","keys","are","op","names","instead","of","tensor","names","(","with",":0",")","."]
code: def __init__(self, reader):
      self._reader = reader
      m = self._reader.get_variable_to_shape_map()
      self._map = {
          k if k.endswith(":0") else k + ":0": v
          for k, v in six.iteritems(m)
      }
  
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 1 to create a new CheckpointReaderAdapter object from inherited base classes: object with example: obj = CheckpointReaderAdapter(reader)