Course4 : Week 1 - Convolution_model_Step_by_Step_v1

Hi,

Could you please help me with the below error in 3.3 - Convolutional Neural Networks - Forward Pass.

ValueError: operands could not be broadcast together with shapes (3,3,4) (3,3,4,8)

You need to slice W and b by selecting only ā€˜cā€™ as the final dimension.

1 Like

Also, please edit your message to remove your code. That keeps you clear with the Honor Code.

1 Like

Hi,

Thanks for the response. I written the below code.
weights = W[:,:,:,c]
biases = b[:,:,:,c]

I am getting the below error. Could you pleas help me out to fix it.

Error: Wrong output for variable in position 0.
2 Tests passed
1 Tests failed

I sorted myself. Required changes in function conv_single_step.

Thanks!!

2 Likes

Hey Lakshman, I seem to have the same error. Can you provide any hints as to what I might need to do, to solve this issue?