suppress errors in vision/fair/pytorch3d

Differential Revision: D38529199

fbshipit-source-id: 4bc0574493b60f13e08d9ea7bded862778b3d171
This commit is contained in:
Pyre Bot Jr 2022-08-08 23:59:04 -07:00 committed by Facebook GitHub Bot
parent e924de4bf2
commit 624bc5a274

View File

@ -323,7 +323,6 @@ def random_quaternions(
"""
if isinstance(device, str):
device = torch.device(device)
# pyre-fixme[6]: For 2nd param expected `dtype` but got `Optional[dtype]`.
o = torch.randn((n, 4), dtype=dtype, device=device)
s = (o * o).sum(1)
o = o / _copysign(torch.sqrt(s), o[:, 0])[:, None]