Skip to content

I have a question about backpropagation #3

@hongnianwang

Description

@hongnianwang

classes = F.sigmoid(feature)

            classes = F.sigmoid(feature) #feature shape=[1,1], classes shape=[1,1]
            one_hot, _ = classes.max(dim=-1) # one_hot shape=[1]
            self.model.zero_grad()
            one_hot.backward()

This one_hot is not the one hot label, I don't know it is correct or not,

In my experiment, there is a class without any activation hot map. Did you know why? 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