".github/git@developer.sourcefind.cn:OpenDAS/torchani.git" did not exist on "123e47604f444fd4d040e96d0aaa5f44a462d7c8"
Commit 624bc5a2 authored by Pyre Bot Jr's avatar Pyre Bot Jr Committed by Facebook GitHub Bot
Browse files

suppress errors in `vision/fair/pytorch3d`

Differential Revision: D38529199

fbshipit-source-id: 4bc0574493b60f13e08d9ea7bded862778b3d171
parent e924de4b
...@@ -323,7 +323,6 @@ def random_quaternions( ...@@ -323,7 +323,6 @@ def random_quaternions(
""" """
if isinstance(device, str): if isinstance(device, str):
device = torch.device(device) 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) o = torch.randn((n, 4), dtype=dtype, device=device)
s = (o * o).sum(1) s = (o * o).sum(1)
o = o / _copysign(torch.sqrt(s), o[:, 0])[:, None] o = o / _copysign(torch.sqrt(s), o[:, 0])[:, None]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment