Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I have a question about backpropagation #3

Open
hongnianwang opened this issue Feb 27, 2020 · 0 comments
Open

I have a question about backpropagation #3

hongnianwang opened this issue Feb 27, 2020 · 0 comments

Comments

@hongnianwang
Copy link

hongnianwang commented Feb 27, 2020

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

@hongnianwang hongnianwang changed the title I have some doubts about backpropagation I have a question about backpropagation Feb 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant