def __setstate__(self, state): Serializable.__setstate__(self, state['init_args']) self.policy = state['policy']
def __setstate__(self, state): # LayersPowered.__setstate__(self, state) Serializable.__setstate__(self, state['init_args']) self.normalization = state['normalization'] for i in range(len(self._networks)): self._networks[i].__setstate__(state['networks'][i])
def __setstate__(self, d): Serializable.__setstate__(self, d) self._obs_mean = d["_obs_mean"] self._obs_var = d["_obs_var"]