'Args:
prms(dict): dict of {variable name: value}
Any name in prms must be in the graph and in vars_to_update.'

def update(self, prms):

    with self.sess.as_default():
        for (name, value) in six.iteritems(prms):
            assert (name in self.name_map)
            v = self.name_map[name]
            SessionUpdate.load_value_to_var(v, value)
