def obs2state(observation, copy=True): if copy: observation = deepcopy(observation) return HashableNdarray(observation)
def clone_state(self): return HashableNdarray(self.vectorized_obs())
def clone_state(self): return HashableNdarray(np.array(self._current_state, dtype=np.uint8))
def clone_full_state(self): state = self.get_np_state() return HashableNdarray(state)