Skip to content

Commit

Permalink
Propagating observation dtype to the replay buffer in RainbowAgent si…
Browse files Browse the repository at this point in the history
…milarly to DQNAgent.

PiperOrigin-RevId: 243108947
  • Loading branch information
Dopamine Team authored and psc-g committed Apr 16, 2019
1 parent 2435916 commit 2ce82ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dopamine/agents/rainbow/rainbow_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ def _build_replay_buffer(self, use_staging):
stack_size=self.stack_size,
use_staging=use_staging,
update_horizon=self.update_horizon,
gamma=self.gamma)
gamma=self.gamma,
observation_dtype=self.observation_dtype.as_numpy_dtype)

def _build_target_distribution(self):
"""Builds the C51 target distribution as per Bellemare et al. (2017).
Expand Down

0 comments on commit 2ce82ea

Please sign in to comment.