Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyballentine committed Jul 13, 2024
1 parent 698386e commit 741e975
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ def forward(self, x):
.to(x.device, non_blocking=True)
)
normalizer = torch.tensor(
[W, H], dtype=x.dtype, device=x.device, pin_memory=False # pin_memory was originally True
[W, H],
dtype=x.dtype,
device=x.device,
pin_memory=False, # pin_memory was originally True
).view(1, 2, 1, 1, 1)
coords = 2 * (coords + offset) / normalizer - 1

Expand Down

0 comments on commit 741e975

Please sign in to comment.