Ejemplo n.º 1
0
 def __init__(self, num_actions: int):
     super().__init__(name='r2d2_atari_network')
     self._embed = embedding.OAREmbedding(DeepAtariTorso(), num_actions)
     self._core = hk.LSTM(512)
     self._duelling_head = duelling.DuellingMLP(num_actions,
                                                hidden_sizes=[512])
     self._num_actions = num_actions
Ejemplo n.º 2
0
 def network(inputs: Images) -> base.QValues:
     model = hk.Sequential([
         AtariTorso(),
         duelling.DuellingMLP(num_actions, hidden_sizes=[512]),
     ])
     return model(inputs)