cnn-from-scratch icon indicating copy to clipboard operation
cnn-from-scratch copied to clipboard

Using 2 Conv Layer

Open ShoaibSajid opened this issue 3 years ago • 1 comments

Hello.

Thank for such an amazing code. It has helped me a lot in understanding.

I am trying to add another Conv layer. I was able to change conv to a 3d conv layer. The forward propagation works fine. but in backward propagation, I am unable to pass derivatives from one conv layer to the other.

Is it possible for you to show me how I can calculate dL/dInput for the conv layer. (the gradient which will be passed from second conv layer to the first conv layer during backpropagation)

ShoaibSajid avatar Sep 29 '22 10:09 ShoaibSajid

Hello.

Thank for such an amazing code. It has helped me a lot in understanding.

I am trying to add another Conv layer. I was able to change conv to a 3d conv layer. The forward propagation works fine. but in backward propagation, I am unable to pass derivatives from one conv layer to the other.

Is it possible for you to show me how I can calculate dL/dInput for the conv layer. (the gradient which will be passed from second conv layer to the first conv layer during backpropagation)

You may refer to my fork, where I have implemented multi-channel input for Conv3x3 and refined the computation of backward propagation. This enhancement enables the realization of multi-layer CNN neural networks.

zitongbai avatar Dec 21 '23 14:12 zitongbai