(self)
| 174 | return actions[::-1] |
| 175 | |
| 176 | def state(self): |
| 177 | return {"count": self.count, "n_flushed": self.n_flushed, |
| 178 | "chunk_size": self.chunk_size, |
| 179 | "cur_prev": self.prev[:self.fill].copy(), "cur_act": self.act[:self.fill].copy(), |
| 180 | "cur_rew": self.rew[:self.fill].copy(), "cur_done": self.done[:self.fill].copy()} |
| 181 | |
| 182 | def load_state(self, st): |
| 183 | assert st["chunk_size"] == self.chunk_size, "explog chunk_size mismatch" |
nothing calls this directly
no outgoing calls
no test coverage detected