Boolean indexing of cameras

Summary: Reasonable to expect bool indexing.

Reviewed By: bottler, kjchalup

Differential Revision: D38741446

fbshipit-source-id: 22b607bf13110043c5624196c66ca1484fdbce6c
This commit is contained in:
Roman Shapovalov
2022-08-16 15:19:39 -07:00
committed by Facebook GitHub Bot
parent 60808972b8
commit b7c826b786
6 changed files with 58 additions and 18 deletions

View File

@@ -181,7 +181,7 @@ class Transform3d:
return self.get_matrix().shape[0]
def __getitem__(
self, index: Union[int, List[int], slice, torch.Tensor]
self, index: Union[int, List[int], slice, torch.BoolTensor, torch.LongTensor]
) -> "Transform3d":
"""
Args: