mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-08-02 03:42:50 +08:00
suppress errors in fbcode/vision
- batch 2
Differential Revision: D30222339 fbshipit-source-id: 97d498df72ef897b8dc2405764e3ffd432082e3c
This commit is contained in:
parent
804117833e
commit
9db70400d8
@ -123,7 +123,7 @@ class GridRaysampler(torch.nn.Module):
|
||||
device = cameras.device
|
||||
|
||||
# expand the (H, W, 2) grid batch_size-times to (B, H, W, 2)
|
||||
xy_grid = self._xy_grid.to(device)[None].expand( # pyre-ignore
|
||||
xy_grid = self._xy_grid.to(device)[None].expand(
|
||||
batch_size, *self._xy_grid.shape
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user