From e9ed1cb1783999a09e88868ca00c7deb5bd3c457 Mon Sep 17 00:00:00 2001 From: generatedunixname1417043136753450 Date: Sun, 22 Feb 2026 04:09:20 -0800 Subject: [PATCH] fbcode/vision/fair/pytorch3d/pytorch3d/renderer/utils.py Reviewed By: bottler Differential Revision: D93708316 fbshipit-source-id: f8ae2432ad34116278b3f7f7de5146b89c3fe63e --- pytorch3d/renderer/utils.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pytorch3d/renderer/utils.py b/pytorch3d/renderer/utils.py index 71cb3920..3d18be6b 100644 --- a/pytorch3d/renderer/utils.py +++ b/pytorch3d/renderer/utils.py @@ -269,9 +269,7 @@ class TensorProperties(nn.Module): # to have the same shape as the input tensor. new_dims = len(tensor_dims) - len(idx_dims) new_shape = idx_dims + (1,) * new_dims - # pyre-fixme[58]: `+` is not supported for operand types - # `Tuple[int]` and `torch._C.Size` - expand_dims = (-1,) + tensor_dims[1:] + expand_dims = (-1,) + tuple(tensor_dims[1:]) _batch_idx = _batch_idx.view(*new_shape) _batch_idx = _batch_idx.expand(*expand_dims)