Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions modules/agents/updet_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ def init_hidden(self):
return torch.zeros(1, self.args.emb).cpu()

def forward(self, inputs, hidden_state, task_enemy_num, task_ally_num):

# Call the mask directly from the env.. As did in DGNs.

outputs, _ = self.transformer.forward(inputs, hidden_state, None)
# first output for 6 action (no_op stop up down left right)
q_basic_actions = self.q_basic(outputs[:, 0, :])
Expand Down