(self, batch_exp)
| 354 | view_state(sample[0]) |
| 355 | |
| 356 | def _process_batch(self, batch_exp): |
| 357 | state = np.asarray([e[0] for e in batch_exp], dtype=self.state_dtype) |
| 358 | reward = np.asarray([e[1] for e in batch_exp], dtype='float32') |
| 359 | action = np.asarray([e[2] for e in batch_exp], dtype='int8') |
| 360 | isOver = np.asarray([e[3] for e in batch_exp], dtype='bool') |
| 361 | return [state, action, reward, isOver] |
| 362 | |
| 363 | # DataFlow method: |
| 364 | def __iter__(self): |