示例#1
0
文件: base.py 项目: iclavera/meta-mb
 def __setstate__(self, state):
     Serializable.__setstate__(self, state['init_args'])
     # tf.get_default_session().run(tf.global_variables_initializer())
     self.set_params(state['network_params'])
示例#2
0
 def __setstate__(self, state):
     Serializable.__setstate__(self, state['init_args'])
     self.policy.__setstate__(state['policy'])
     self.optimizer.__getstate__(state['optimizer'])
示例#3
0
 def __setstate__(self, state):
     Serializable.__setstate__(self, state['init_args'])
     self.set_params(state['network_params'])
     [obs_filter.set_params(params) for obs_filter, params in zip(self.obs_filters, state['filter'])]