From 92f2d648713132653ea6eb14ce29448d9dc2eca6 Mon Sep 17 00:00:00 2001 From: Mohammadreza Ghaffarzadeh <75425392+mohammad-gh009@users.noreply.github.com> Date: Sat, 27 Apr 2024 21:06:58 +0330 Subject: [PATCH] Remove the redundant line of code self.b1 = BaseConv2d(in_channels, n1x1, kernel_size=1) this line of code was redundant in the GoogleNet architecture. --- chapters/en/unit2/cnns/googlenet.mdx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/chapters/en/unit2/cnns/googlenet.mdx b/chapters/en/unit2/cnns/googlenet.mdx index 9086921bc..0d2f174f1 100644 --- a/chapters/en/unit2/cnns/googlenet.mdx +++ b/chapters/en/unit2/cnns/googlenet.mdx @@ -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), @@ -262,4 +260,4 @@ class GoogLeNet(nn.Module): return x, aux1, aux2 else: return x -``` \ No newline at end of file +```