'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.'

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):
            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
