mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-22 23:30:35 +08:00
suppress errors in vision - batch 1
Differential Revision: D23970214 fbshipit-source-id: b6a328f53178304b36556b5cf96584467a7d2ce4
This commit is contained in:
committed by
Facebook GitHub Bot
parent
e5ac38aa87
commit
d902a96ca2
@@ -95,7 +95,8 @@ def rasterize_points(
|
||||
|
||||
if bin_size != 0:
|
||||
# There is a limit on the number of points per bin in the cuda kernel.
|
||||
# pyre-fixme[6]: Expected `int` for 1st param but got `Union[int, None, int]`.
|
||||
# pyre-fixme[58]: `//` is not supported for operand types `int` and
|
||||
# `Union[int, None, int]`.
|
||||
points_per_bin = 1 + (image_size - 1) // bin_size
|
||||
if points_per_bin >= kMaxPointsPerBin:
|
||||
raise ValueError(
|
||||
|
||||
Reference in New Issue
Block a user