Skip to content

Commit

Permalink
Merge pull request #435 from muupan/iqn-tuple-obs
Browse files Browse the repository at this point in the history
Make IQN work with tuple observations
  • Loading branch information
muupan committed Apr 5, 2019
2 parents db8fa5c + 4d1f98f commit e6e47d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chainerrl/agents/iqn.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def _compute_target_values(self, exp_batch):
chainer.Variable: (batch_size, N_prime).
"""
batch_next_state = exp_batch['next_state']
batch_size = batch_next_state.shape[0]
batch_size = len(exp_batch['reward'])
taus_tilde = self.xp.random.uniform(
0, 1, size=(batch_size, self.quantile_thresholds_K)).astype('f')

Expand Down

0 comments on commit e6e47d3

Please sign in to comment.