Suppress type errors for Pyre upgrade

Summary:
This diff was automatically generated by the Pyre per-target upgrade tool.

It adds `# pyre-fixme` or `pyrefly: ignore` comments to suppress type errors that will be introduced by an upcoming Pyre or Pyrefly release. These suppressions allow the upgrade to proceed without breaking existing code.

wed - upgrade new suppression fix

#pyreupgrade

Differential Revision: D108188975

fbshipit-source-id: 65fb6fb0dbd6ade15bd8d85da912413eab2e41f9
This commit is contained in:
generatedunixname89002005307016
2026-06-10 19:55:02 -07:00
committed by meta-codesync[bot]
parent d34e87ce52
commit f137c87cf9
2 changed files with 4 additions and 0 deletions

View File

@@ -458,6 +458,8 @@ class BlenderCamera(CamerasBase): # pragma: no cover
def get_projection_transform(self, **kwargs) -> Transform3d:
transform = Transform3d(device=self.device)
# pyre-fixme[29]: `Union[(self: TensorBase, dim0: int, dim1: int) -> Tensor,
# Tensor, Module]` is not a function.
transform._matrix = self.K.transpose(1, 2).contiguous()
return transform

View File

@@ -181,6 +181,8 @@ def _align_camera_extrinsics(
```
"""
# pyre-fixme[6]: For 1st argument expected `Tensor` but got `Union[Tensor, Module]`.
# pyre-fixme[29]: `Union[(self: TensorBase, dim0: int, dim1: int) -> Tensor,
# Tensor, Module]` is not a function.
RRcov = torch.bmm(cameras_src.R, cameras_tgt.R.transpose(2, 1)).mean(0)
U, _, V = torch.svd(RRcov)
align_t_R = V @ U.t()