Skip to content

Commit 3124951

Browse files
committed
fix torchfix errors
1 parent e848409 commit 3124951

File tree

1 file changed

+1
-1
lines changed
  • segmentation_models_pytorch/base

1 file changed

+1
-1
lines changed

segmentation_models_pytorch/base/heads.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def __init__(
1010
in_channels, out_channels, kernel_size=kernel_size, padding=kernel_size // 2
1111
)
1212
upsampling = (
13-
nn.UpsamplingBilinear2d(scale_factor=upsampling)
13+
nn.Upsample(mode="bilinear", scale_factor=upsampling)
1414
if upsampling > 1
1515
else nn.Identity()
1616
)

0 commit comments

Comments
 (0)