Skip to content

no need to calculate average after F.cross_entropy in loss.py #9

Open
@Vicky7777

Description

@Vicky7777

In line 29 of loss.py, there is no need to do torch.sum(loss_1_update)/num_remember. Because the result of F.cross_entropy with default parameters reduce = True and size_average = True is the average loss.

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