Skip to content

Commit

Permalink
Update ch15_part1.py
Browse files Browse the repository at this point in the history
  • Loading branch information
elfelround authored Apr 29, 2020
1 parent cc3d11f commit 08f2aae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch15/ch15_part1.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def conv1d(x, w, p=0, s=1):
x_padded = np.concatenate(
[zero_pad, x_padded, zero_pad])
res = []
for i in range(0, int((len(x_padded) - len(w_rot) / s)) + 1, s):
for i in range(0, int((len(x_padded) - len(w_rot)) / s)) + 1, s):
res.append(np.sum(
x_padded[i:i+w_rot.shape[0]] * w_rot))
return np.array(res)
Expand Down

0 comments on commit 08f2aae

Please sign in to comment.