Skip to content

Commit

Permalink
Revert "Silence warnings in PyTorch 1.10"
Browse files Browse the repository at this point in the history
This reverts commit ea2a597.
  • Loading branch information
HolyWu committed Oct 28, 2021
1 parent be631fe commit 4142c52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vsbasicvsrpp/flow_warp.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def flow_warp(x,
f'flow ({flow.size()[1:3]}) are not the same.')
_, _, h, w = x.size()
# create mesh grid
grid_y, grid_x = torch.meshgrid(torch.arange(0, h), torch.arange(0, w), indexing='ij')
grid_y, grid_x = torch.meshgrid(torch.arange(0, h), torch.arange(0, w))
grid = torch.stack((grid_x, grid_y), 2).type_as(x) # (w, h, 2)
grid.requires_grad = False

Expand Down

0 comments on commit 4142c52

Please sign in to comment.