deep-learning-with-pytorch / dlwpt-code

Code for the book Deep Learning with PyTorch by Eli Stevens, Luca Antiga, and Thomas Viehmann.
https://www.manning.com/books/deep-learning-with-pytorch
4.69k stars 1.98k forks source link

Ch8: Computation formula for element o11 of the output image (page 95) #82

Open sgkouzias opened 2 years ago

sgkouzias commented 2 years ago

The formula presented in the book as is:

o11 = i11 w00 + i12 w01 + *i22 w02* + i21 w10 + i22 w11 + i23 w12 + i31 w20 + i32 w21 + i33 * w22

As I understand the function of the kernel on the image the element of the image multiplied by the weight w02 should be i13 not i22! Am I right?