Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add style target to makefile #324

Merged
merged 6 commits into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@

johko marked this conversation as resolved.
Show resolved Hide resolved
# Check code formatting
quality:
python utils/code_formatter.py --check_only
python utils/code_formatter.py --check_only

johko marked this conversation as resolved.
Show resolved Hide resolved
# Format code samples automatically and check is there are any problems left that need manual fixing
style:
python utils/code_formatter.py
2 changes: 1 addition & 1 deletion chapters/en/unit2/cnns/vgg.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class VGG19(nn.Module):

def forward(self, x):
x = self.feature_extractor(x) # Pass input through the feature extractor layers
x = self.avgpool(x) # Pass Data through a pooling layer
x = self.avgpool(x) # Pass Data through a pooling layer
x = x.view(x.size(0), -1) # Flatten the output for the fully connected layers
x = self.classifier(x) # Pass flattened output through the classifier layers
return x
Expand Down
Loading