dqn-pytorch icon indicating copy to clipboard operation
dqn-pytorch copied to clipboard

Possible issue in select_action method

Open parthjaggi opened this issue 6 years ago • 0 comments

In code snippet below from select_action method, the input hidden state is taken from self.train_hidden_state.

But the output hidden state is saved in self.dqn_hidden_state. It seems the output hidden state should also go to self.train_hidden_state.

elif self.mode == 'lstm':
            action, self.dqn_hidden_state, self.dqn_cell_state = \
                self.dqn(states_variable, self.train_hidden_state, self.train_cell_state)

Is this an error or for some reason.

parthjaggi avatar Jun 28 '18 08:06 parthjaggi