Skip to content

where is the implementation details of border_align_forward #52

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

Open
muyihao opened this issue May 13, 2021 · 2 comments
Open

where is the implementation details of border_align_forward #52

muyihao opened this issue May 13, 2021 · 2 comments

Comments

@muyihao
Copy link

muyihao commented May 13, 2021

I want read the implementation of border_align_forward, but can't open the _C in "from cvpods import _C" in the file of border_align.py

@Maycbj
Copy link
Member

Maycbj commented May 21, 2021

@fengqian-wei
Copy link

@Maycbj Thank you for you reply. I have some problem after reading the code. The block parameter set 128. why the grid parameter set output_size /64 instead of output_size /128

dim3 grid(std::min(THCCeilDiv((long)output_size, 64L), 4096L)); dim3 block(128, 4);

https://github.com/Megvii-BaseDetection/cvpods/blob/d1b1de5260eebc37f0f68c351a5e1963e91051a5/cvpods/layers/csrc/border_align/border_align_kernel.cu#L179

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