suppress errors in vision/fair/pytorch3d

Differential Revision: D31496551

fbshipit-source-id: 705fd88f319875db3f7938a2946c48a51ea225f5
This commit is contained in:
Pyre Bot Jr
2021-10-07 21:56:41 -07:00
committed by Facebook GitHub Bot
parent 6dfa326922
commit 6d36c1e2b0
10 changed files with 3 additions and 12 deletions

View File

@@ -142,7 +142,6 @@ def matrix_to_quaternion(matrix: torch.Tensor) -> torch.Tensor:
# We floor here at 0.1 but the exact level is not important; if q_abs is small,
# the candidate won't be picked.
# pyre-ignore [16]: `torch.Tensor` has no attribute `new_tensor`.
quat_candidates = quat_by_rijk / (2.0 * q_abs[..., None].max(q_abs.new_tensor(0.1)))
# if not for numerical problems, quat_candidates[i] should be same (up to a sign),