Skip to content

Commit

Permalink
Merge 065baaa into a091e3f
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhatnagarajan committed Oct 18, 2019
2 parents a091e3f + 065baaa commit 639ec30
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions chainerrl/agents/categorical_double_dqn.py
Expand Up @@ -35,15 +35,13 @@ def _compute_target_values(self, exp_batch):
target_next_qout = self.target_model(batch_next_state)
next_qout = self.model(batch_next_state)

next_q_max = target_next_qout.evaluate_actions(
next_qout.greedy_actions)

batch_size = batch_rewards.shape[0]
z_values = target_next_qout.z_values
n_atoms = z_values.size

# next_q_max: (batch_size, n_atoms)
next_q_max = target_next_qout.max_as_distribution.array
next_q_max = target_next_qout.evaluate_actions_as_distribution(
next_qout.greedy_actions.array).array
assert next_q_max.shape == (batch_size, n_atoms), next_q_max.shape

# Tz: (batch_size, n_atoms)
Expand Down

0 comments on commit 639ec30

Please sign in to comment.