Skip to content

Commit

Permalink
Remove the redundant line of code
Browse files Browse the repository at this point in the history
self.b1 = BaseConv2d(in_channels, n1x1, kernel_size=1)

this line of code was redundant in the GoogleNet architecture.
  • Loading branch information
mohammad-gh009 committed Apr 27, 2024
1 parent dac3a35 commit 92f2d64
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions chapters/en/unit2/cnns/googlenet.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ class InceptionModule(nn.Module):
def __init__(self, in_channels, n1x1, n3x3red, n3x3, n5x5red, n5x5, pool_proj):
super(InceptionModule, self).__init__()

self.b1 = BaseConv2d(in_channels, n1x1, kernel_size=1)

self.b1 = nn.Sequential(
nn.Conv2d(in_channels, n1x1, kernel_size=1),
nn.ReLU(True),
Expand Down Expand Up @@ -262,4 +260,4 @@ class GoogLeNet(nn.Module):
return x, aux1, aux2
else:
return x
```
```

0 comments on commit 92f2d64

Please sign in to comment.