Skip to content

Average the loss? #5

@heli-sudoo

Description

@heli-sudoo

loss = torch.sum((-logprob_pi * torch.Tensor(adv_n).to(self.device)))

Shall the loss be averaged by N? I apologize if I am wrong. Do not have much experience with RL. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions