We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7538cd7 commit 4aa4b2fCopy full SHA for 4aa4b2f
machine_learning/cnn.py
@@ -42,7 +42,7 @@ def convolve(self, input_tensor: np.ndarray, filters: np.ndarray) -> np.ndarray:
42
for f in range(num_filters):
43
for i in range(height - fh + 1):
44
for j in range(width - fw + 1):
45
- region = input_tensor[:, i:i + fh, j:j + fw]
+ region = input_tensor[:, i : i + fh, j : j + fw]
46
output[f, i, j] = np.sum(region * filters[f])
47
return output
48
0 commit comments