Hi,
The derivative tells you how much the output will change for a very small change in the input.
If you use your weights in a condition like that. Changing them a little won’t change the output at all. So all the gradient will be 0.
So all zeros are the right gradients here I’m afraid.