(self)
return var_dict
Constructs a dict mapping the checkpoint variables to those in new graph.

    Returns:
      A dict mapping variable names in the checkpoint to variables in the graph.
Constructs a dict mapping the checkpoint variables to those in new graph.
Constructs a dict mapping the checkpoint variables to those in new graph .
def get_variable_name_dict(self):
    """Constructs a dict mapping the checkpoint variables to those in new graph.

    Returns:
      A dict mapping variable names in the checkpoint to variables in the graph.
    """
    var_dict = dict()
    for var in self.variables():
      inner_name = rl_tuner_ops.get_inner_scope(var.name)
      inner_name = rl_tuner_ops.trim_variable_postfixes(inner_name)
      if '/Adam' in var.name:
        # TODO(lukaszkaiser): investigate the problem here and remove this hack.
        pass
      elif self.note_rnn_type == 'basic_rnn':
        var_dict[inner_name] = var
      else:
        var_dict[self.checkpoint_scope + '/' + inner_name] = var

    return var_dict
def get_variable_name_dict ( self ) : var_dict = dict ( ) for var in self . variables ( ) : inner_name = rl_tuner_ops . get_inner_scope ( var . name ) inner_name = rl_tuner_ops . trim_variable_postfixes ( inner_name ) if '/Adam' in var . name : # TODO(lukaszkaiser): investigate the problem here and remove this hack. pass elif self . note_rnn_type == 'basic_rnn' : var_dict [ inner_name ] = var else : var_dict [ self . checkpoint_scope + '/' + inner_name ] = var return var_dict