Skip to content

Commit bcfd464

Browse files
generatedunixname89002005307016facebook-github-bot
generatedunixname89002005307016
authored andcommitted
upgrade pyre version in fbcode/vision - batch 1
Differential Revision: D60992191 fbshipit-source-id: f826042c9d5b4f9b72b142fcef13f5772e3b9a8d
1 parent 31bebde commit bcfd464

File tree

1 file changed

+1
-0
lines changed
  • projects/DensePose/densepose/modeling/losses

1 file changed

+1
-0
lines changed

projects/DensePose/densepose/modeling/losses/utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ def resample_data(
225225
grid_h = torch.arange(hout, device=z.device, dtype=torch.float) / hout
226226
grid_w_expanded = grid_w[None, None, :].expand(n, hout, wout)
227227
grid_h_expanded = grid_h[None, :, None].expand(n, hout, wout)
228+
# pyre-fixme[16]: `float` has no attribute `__getitem__`.
228229
dx_expanded = (x1dst_norm - x0dst_norm)[:, None, None].expand(n, hout, wout)
229230
dy_expanded = (y1dst_norm - y0dst_norm)[:, None, None].expand(n, hout, wout)
230231
x0_expanded = x0dst_norm[:, None, None].expand(n, hout, wout)

0 commit comments

Comments
 (0)