Skip to content

Commit

Permalink
Merge pull request #280 from mohammad-gh009/patch-2
Browse files Browse the repository at this point in the history
Remove the redundant line of code
  • Loading branch information
johko authored Jul 17, 2024
2 parents f532359 + 787d734 commit cde88c8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
7 changes: 5 additions & 2 deletions chapters/en/unit2/cnns/googlenet.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@ 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),
)

self.b2 = nn.Sequential(
BaseConv2d(in_channels, n3x3red, kernel_size=1),
Expand Down Expand Up @@ -228,4 +231,4 @@ class GoogLeNet(nn.Module):
return x, aux1, aux2
else:
return x
```
```
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
transformers==4.34.0
timm==0.9.7
evaluate==0.4.1
datasets==2.14.5
#transformers==4.34.0
#timm==0.9.7
#valuate==0.4.1
#datasets==2.14.5
jupyter==1.0.0
ipywidgets==8.1.1
torch==2.1.0
#torch==2.1.0
albumentations==1.3.1
matplotlib==3.7.1
2 changes: 1 addition & 1 deletion utils/code_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,4 @@ def format_all_files(check_only=False):
)
args = parser.parse_args()

format_all_files(check_only=args.check_only)
format_all_files(check_only=args.check_only)

0 comments on commit cde88c8

Please sign in to comment.