Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jax agents not passing required argument to replay buffer constructor #200

Closed
tylerkastner opened this issue Oct 11, 2022 · 2 comments
Closed

Comments

@tylerkastner
Copy link

replay_capacity and batch_size are required arguments for the OutOfGraphReplayBuffer constructor:

def __init__(self,
observation_shape,
stack_size,
replay_capacity,
batch_size,

However they are not being passed in the _build_replay_buffer method of any Jax agent:
def _build_replay_buffer(self):
"""Creates the replay buffer used by the agent."""
return circular_replay_buffer.OutOfGraphReplayBuffer(
observation_shape=self.observation_shape,
stack_size=self.stack_size,
update_horizon=self.update_horizon,
gamma=self.gamma,
observation_dtype=self.observation_dtype)

This appears to only affect Jax agents, non-Jax agents use the WrappedReplayBuffer constructor for which replay_capacity and batch_size are not required arguments.

@psc-g
Copy link
Collaborator

psc-g commented Oct 11, 2022 via email

@tylerkastner
Copy link
Author

Ah that does it, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants