updates
This commit is contained in:
parent
1043832493
commit
328ad4da04
|
@ -140,8 +140,7 @@ class weightedFeatureFusion(nn.Module): # weighted sum of 2 or more layers http
|
||||||
|
|
||||||
# Adjust channels
|
# Adjust channels
|
||||||
if dc > 0: # pad
|
if dc > 0: # pad
|
||||||
pad = nn.ZeroPad2d((0, 0, 0, 0, 0, dc))
|
a = nn.ZeroPad2d((0, 0, 0, 0, 0, dc))(a)
|
||||||
a = pad(a)
|
|
||||||
elif dc < 0: # slice
|
elif dc < 0: # slice
|
||||||
a = a[:, :nc]
|
a = a[:, :nc]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue