Skip to content

Commit 3be9a7d

Browse files
authored
Bugfix in the example CNN
1 parent ffaeedd commit 3be9a7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example/model/wide_res_net.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def __init__(self, channels: int, dropout: float):
1919
]))
2020

2121
def forward(self, x):
22-
return self.block(x)
22+
return x + self.block(x)
2323

2424

2525
class DownsampleUnit(nn.Module):
@@ -90,4 +90,4 @@ def _initialize(self):
9090
m.bias.data.zero_()
9191

9292
def forward(self, x):
93-
return self.f(x)
93+
return self.f(x)

0 commit comments

Comments
 (0)