Esempio n. 1
0
 def obs2state(observation, copy=True):
     if copy:
         observation = deepcopy(observation)
     return HashableNdarray(observation)
Esempio n. 2
0
 def clone_state(self):
     return HashableNdarray(self.vectorized_obs())
Esempio n. 3
0
 def clone_state(self):
     return HashableNdarray(np.array(self._current_state, dtype=np.uint8))
Esempio n. 4
0
 def clone_full_state(self):
     state = self.get_np_state()
     return HashableNdarray(state)