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

in cu file ,such compare float down_temp = 0.0f; while(down_temp == 0.0f && down_offset + 1 <= h - 1 ) is ok? #4

Closed
l2009312042 opened this issue Apr 16, 2019 · 2 comments

Comments

@l2009312042
Copy link

down_temp == 0.0f ?

@l2009312042
Copy link
Author

int left_offset = w_i; float left_temp = 0.0f;
while(left_temp ==0.0f && left_offset - 1 >= 0){
left_offset = left_offset - 1;
left_temp = count[batch_i * count_b_stride + 0 + h_i * count_h_stride + left_offset] ;
}
and the search is continue to the left if the value left_temp is zero ,this beyond the four neighbor?

@baowenbo
Copy link
Owner

We search until the left_temp is not zero.
Once left_temp > 0.0f, we break out.

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