mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-21 14:50:36 +08:00
suppress errors in vision/fair/pytorch3d
Differential Revision: D31496551 fbshipit-source-id: 705fd88f319875db3f7938a2946c48a51ea225f5
This commit is contained in:
committed by
Facebook GitHub Bot
parent
6dfa326922
commit
6d36c1e2b0
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user