Skip to content

correct the size of returned tensor in comments of ps_roi_pool.py and ps_roi_align.py #3849

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

Merged
merged 4 commits into from
May 17, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion torchvision/ops/ps_roi_align.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def ps_roi_align(
``ceil(roi_width / output_width)``, and likewise for height). Default: -1

Returns:
Tensor[K, C, output_size[0], output_size[1]]: The pooled RoIs
Tensor[K, C/(output_size[0]*output_size[1]), output_size[0], output_size[1]]: The pooled RoIs
"""
_assert_has_ops()
check_roi_boxes_shape(boxes)
Expand Down
2 changes: 1 addition & 1 deletion torchvision/ops/ps_roi_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def ps_roi_pool(
the box coordinates. Default: 1.0

Returns:
Tensor[K, C, output_size[0], output_size[1]]: The pooled RoIs.
Tensor[K, C/(output_size[0]*output_size[1]), output_size[0], output_size[1]]: The pooled RoIs.
"""
_assert_has_ops()
check_roi_boxes_shape(boxes)
Expand Down