Skip to content

Commit

Permalink
Replaces deprecated upsample with interpolate in model
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-j-h authored and jqtrde committed May 28, 2019
1 parent 0c1bdc9 commit 20850ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion robosat/unet.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def forward(self, x):
The networks output tensor.
"""

return self.block(nn.functional.upsample(x, scale_factor=2, mode="nearest"))
return self.block(nn.functional.interpolate(x, scale_factor=2, mode="nearest"))


class UNet(nn.Module):
Expand Down

0 comments on commit 20850ed

Please sign in to comment.