这是indexloc提供的服务,不要输入任何密码
Skip to content

batch info None in target_q of ddpg #1241

@JoshuaSchenk

Description

@JoshuaSchenk

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions