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

Please check Line 71 of contrastive_loss.cpp #20

Closed
denny1108 opened this issue Aug 6, 2015 · 2 comments
Closed

Please check Line 71 of contrastive_loss.cpp #20

denny1108 opened this issue Aug 6, 2015 · 2 comments

Comments

@denny1108
Copy link

I think it should be:
if (static_cast(bottom[2]->cpu_data()[j])==static_cast(bottom[3]->cpu_data()[j]))
instead of
if (static_cast(bottom[2]->cpu_data()[j])==static_cast(bottom[2]->cpu_data()[j]))

Anyway, your .cu version is right! :)

@happynear
Copy link
Owner

Sorry, I used an old buggy version of contrastive_loss when updating cudnn v3.

@happynear
Copy link
Owner

It seems that I used a very old version to merge. I need to check it carefully.

happynear pushed a commit that referenced this issue May 10, 2016
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

2 participants