Skip to content

Commit

Permalink
upgrade pyre version in fbcode/vision - batch 1
Browse files Browse the repository at this point in the history
Differential Revision: D60992191

fbshipit-source-id: f826042c9d5b4f9b72b142fcef13f5772e3b9a8d
  • Loading branch information
generatedunixname89002005307016 authored and facebook-github-bot committed Aug 9, 2024
1 parent 31bebde commit bcfd464
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions projects/DensePose/densepose/modeling/losses/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ def resample_data(
grid_h = torch.arange(hout, device=z.device, dtype=torch.float) / hout
grid_w_expanded = grid_w[None, None, :].expand(n, hout, wout)
grid_h_expanded = grid_h[None, :, None].expand(n, hout, wout)
# pyre-fixme[16]: `float` has no attribute `__getitem__`.
dx_expanded = (x1dst_norm - x0dst_norm)[:, None, None].expand(n, hout, wout)
dy_expanded = (y1dst_norm - y0dst_norm)[:, None, None].expand(n, hout, wout)
x0_expanded = x0dst_norm[:, None, None].expand(n, hout, wout)
Expand Down

0 comments on commit bcfd464

Please sign in to comment.