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

Maybe bug in cpu backward #1

Open
pkuyym opened this issue Mar 25, 2016 · 3 comments
Open

Maybe bug in cpu backward #1

pkuyym opened this issue Mar 25, 2016 · 3 comments

Comments

@pkuyym
Copy link

pkuyym commented Mar 25, 2016

for (int k = 0; k < dim; ++k) {
bottom_diff[i * dim + k * inner_num_ + j] *= w;
}
dim may should be channels?

@stormkingz
Copy link

@pkuyym I think you'are right

@mahaoyanghb
Copy link

I have checked this, I found dim=channels

@mahaoyanghb
Copy link

I have found a issue,

Backward_cpu
for (int k = 0; k < dim; ++k) {
bottom_diff[i * dim + k * inner_num_ + j] *= w;
}
should be
bottom_diff[i * dim + label_value * inner_num_ + j] *=w;

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

3 participants