Skip to content

Commit 08f2aae

Browse files
authored
Update ch15_part1.py
1 parent cc3d11f commit 08f2aae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: ch15/ch15_part1.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def conv1d(x, w, p=0, s=1):
8080
x_padded = np.concatenate(
8181
[zero_pad, x_padded, zero_pad])
8282
res = []
83-
for i in range(0, int((len(x_padded) - len(w_rot) / s)) + 1, s):
83+
for i in range(0, int((len(x_padded) - len(w_rot)) / s)) + 1, s):
8484
res.append(np.sum(
8585
x_padded[i:i+w_rot.shape[0]] * w_rot))
8686
return np.array(res)

0 commit comments

Comments
 (0)