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

Question about PrRoIPoolingMatCalculation #35

Open
JingChaoLiu opened this issue Sep 15, 2019 · 0 comments
Open

Question about PrRoIPoolingMatCalculation #35

JingChaoLiu opened this issue Sep 15, 2019 · 0 comments

Comments

@JingChaoLiu
Copy link

Define of PrRoIPoolingMatCalculation

__device__ static float PrRoIPoolingMatCalculation(F_DEVPTR_IN this_data, const int s_h, const int s_w, const int e_h, const int e_w,
const float y0, const float x0, const float y1, const float x1, const int h0, const int w0)

When called PrRoIPoolingMatCalculation in PrRoIPoolingForward

for (int w_iter = s_w; w_iter < e_w; ++w_iter)
for (int h_iter = s_h; h_iter < e_h; ++h_iter)
sum_out += PrRoIPoolingMatCalculation(this_data, h_iter, w_iter, h_iter + 1, w_iter + 1,
max(win_start_h, float(h_iter)), max(win_start_w, float(w_iter)),
min(win_end_h, float(h_iter) + 1.0), min(win_end_w, float(w_iter + 1.0)),
height, width);

Given 1 <= h_iter <= win_end_h - 1 and 1 <= w_iter <= win_end_w -1, for the parameters passed to PrRoIPoolingMatCalculation, s_h and s_walways equal y0 and x0respectively, and e_h and e_walways equal y1 and x1respectively.

Are these settings what you expected?

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