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

batch info None in target_q of ddpg #1241

Open
JoshuaSchenk opened this issue Feb 3, 2025 · 0 comments
Open

batch info None in target_q of ddpg #1241

JoshuaSchenk opened this issue Feb 3, 2025 · 0 comments

Comments

@JoshuaSchenk
Copy link

The target_q function of the ddpg policy sets the info in batch to None. Why does this happen?

def target_q(self, buffer: ReplayBuffer, indices: np.ndarray) -> torch.Tensor:
obs_next_batch = Batch(
obs=buffer[indices].obs_next,
info=[None] * len(indices), #WHY?
) # obs_next: s
{t+n}
return self.critic_old(obs_next_batch.obs, self(obs_next_batch, model="actor_old").act)

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

1 participant