Skip to content

Commit 4aa4b2f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 7538cd7 commit 4aa4b2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

machine_learning/cnn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def convolve(self, input_tensor: np.ndarray, filters: np.ndarray) -> np.ndarray:
4242
for f in range(num_filters):
4343
for i in range(height - fh + 1):
4444
for j in range(width - fw + 1):
45-
region = input_tensor[:, i:i + fh, j:j + fw]
45+
region = input_tensor[:, i : i + fh, j : j + fw]
4646
output[f, i, j] = np.sum(region * filters[f])
4747
return output
4848

0 commit comments

Comments
 (0)