From 8bf284954556151218144c4701d8af67b917e6b0 Mon Sep 17 00:00:00 2001 From: Johannes Date: Tue, 23 Jul 2024 22:41:07 +0200 Subject: [PATCH 1/5] add style target to makefile --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e809d224c..0450193ca 100644 --- a/Makefile +++ b/Makefile @@ -2,4 +2,8 @@ # Check code formatting quality: - python utils/code_formatter.py --check_only \ No newline at end of file + python utils/code_formatter.py --check_only + +# Format code samples automatically and check is there are any problems left that need manual fixing +style: + python utils/code_formatter.py \ No newline at end of file From d776bf6c8ae7f8d303c1e0337f52f000404405ba Mon Sep 17 00:00:00 2001 From: Johannes Date: Tue, 23 Jul 2024 22:46:01 +0200 Subject: [PATCH 2/5] fix formatting for file --- chapters/en/unit2/cnns/vgg.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapters/en/unit2/cnns/vgg.mdx b/chapters/en/unit2/cnns/vgg.mdx index 3d75129c0..8f2772b96 100644 --- a/chapters/en/unit2/cnns/vgg.mdx +++ b/chapters/en/unit2/cnns/vgg.mdx @@ -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 From b307ff8933570ea119662b5c30b6b2c33e0fee6b Mon Sep 17 00:00:00 2001 From: Johannes Kolbe <2843485+johko@users.noreply.github.com> Date: Thu, 25 Jul 2024 22:56:47 +0200 Subject: [PATCH 3/5] Update Makefile Co-authored-by: Woojun Jung <46880056+jungnerd@users.noreply.github.com> --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0450193ca..c6e7b130a 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ .PHONY: quality - +.PHONY: quality style # Check code formatting quality: python utils/code_formatter.py --check_only From bd877c3e4d1be8d068ec037375c9273977f59ac8 Mon Sep 17 00:00:00 2001 From: Johannes Kolbe <2843485+johko@users.noreply.github.com> Date: Thu, 25 Jul 2024 22:56:56 +0200 Subject: [PATCH 4/5] Update Makefile Co-authored-by: Woojun Jung <46880056+jungnerd@users.noreply.github.com> --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c6e7b130a..408217560 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,6 @@ quality: python utils/code_formatter.py --check_only -# Format code samples automatically and check is there are any problems left that need manual fixing +# Format code samples automatically and check if there are any problems left that need manual fixing style: python utils/code_formatter.py \ No newline at end of file From c1413dbba26112092f7bcb50b98f6a18620faa68 Mon Sep 17 00:00:00 2001 From: Johannes Date: Wed, 14 Aug 2024 10:01:04 +0200 Subject: [PATCH 5/5] fix first line in makefile --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 408217560..8fd3fd8a4 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -.PHONY: quality .PHONY: quality style + # Check code formatting quality: python utils/code_formatter.py --check_only