Skip to content

Commit

Permalink
Merge pull request #7 from huhongsun/rc41.x
Browse files Browse the repository at this point in the history
add constraints of points_in_polygons
  • Loading branch information
momo609 committed May 17, 2024
2 parents bfffaeb + f1997ff commit 2d42850
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mmcv/ops/points_in_polygons.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ def points_in_polygons(points: Tensor, polygons: Tensor) -> Tensor:
polygons (torch.Tensor): It has shape (M, 8), indicating
(x1, y1, x2, y2, x3, y3, x4, y4). M means the number of
ground truth polygons.
constraints: The absolute value of input range from e-10 to
e10 on NPU.
constraints: The number of significant digits for the input-arguments
are between -10 and 10 when running on Ascend device.
Returns:
torch.Tensor: Return the result with the shape of (B, M),
Expand Down

0 comments on commit 2d42850

Please sign in to comment.