MCPcopy Create free account
hub / github.com/YeWR/EfficientZero / get_game

Method get_game

core/replay_buffer.py:72–77  ·  view source on GitHub ↗
(self, idx)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected