We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
See the code below from the master branch
// initialize scale_data to the first plane caffe_copy(inner_num_, bottom_data + i * dim, scale_data); for (int j = 0; j < channels; j++) { for (int k = 0; k < inner_num_; k++) { scale_data[k] = std::max(scale_data[k], bottom_data[i * dim + j * inner_num_ + k]); } }
j should start from 1. It is useless to set j=0 to compare scale_data[k] against itself.
j
j=0
scale_data[k]
The text was updated successfully, but these errors were encountered:
avoid comparing against itself for find the max in SoftMaxLayer (fix B…
17016e7
…VLC#6597)
avoid comparing against itself for finding the max in SoftMaxLayer (fix
4ec0d0f
BVLC#6597)
Successfully merging a pull request may close this issue.
Issue summary
See the code below from the master branch
j
should start from 1. It is useless to setj=0
to comparescale_data[k]
against itself.The text was updated successfully, but these errors were encountered: