Skip to content

Commit 36a6ccc

Browse files
authored
Merge pull request #421 from Open-Deep-ML/moe18-patch-6
Update solution.py
2 parents 84aca53 + 946136b commit 36a6ccc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Problems/41_simple_conv2d_layer/solution.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,17 @@ def test_simple_conv2d():
8383
[1, 2, 3],
8484
[1, 2, 3],
8585
])
86-
kenel = np.array([
86+
kernel = np.array([
8787
[1, 2, 3],
8888
[1, 2, 3],
8989
[1, 2, 3],
9090
])
9191
padding, stride = 1, 1
9292
expected = np.array([
93-
[26., 40., 10.],
94-
[34., 54., 18.],
95-
[26., 36., 2.],
96-
])
93+
[16., 28., 16.],
94+
[24., 42., 24.],
95+
[16., 28., 16.]
96+
])
9797
assert np.array_equal(expected, simple_conv2d(input_matrix, kernel, padding, stride))
9898

9999

0 commit comments

Comments
 (0)