(self, idx)
| 70 | self.game_look_up += [(self.base_idx + len(self.buffer) - 1, step_pos) for step_pos in range(len(game))] |
| 71 | |
| 72 | def get_game(self, idx): |
| 73 | # return a game |
| 74 | game_id, game_pos = self.game_look_up[idx] |
| 75 | game_id -= self.base_idx |
| 76 | game = self.buffer[game_id] |
| 77 | return game |
| 78 | |
| 79 | def prepare_batch_context(self, batch_size, beta): |
| 80 | """Prepare a batch context that contains: |
nothing calls this directly
no outgoing calls
no test coverage detected