Skip to content

Why 'loss.backward()' is carried out before the k-means function? #7

@MrYaoH

Description

@MrYaoH

In the ‘train_one_epoch‘ function,I notice that when 'loss.backward()' is carried out for the first time,the Ci is not clustered by k-means method. Clustering does not work until the second data batch in the first epoch enters. This problem make me confused. In other words,why 'loss.backward()' function is defined before the k-means function? In the paper, the k-means function should do before computing the loss. right?

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