mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-21 14:50:36 +08:00
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:
committed by
Facebook GitHub Bot
parent
60808972b8
commit
b7c826b786
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user