If you're using tensorflow and giving you're model a batch make sure you put model(batch, training=True) if training isn't set to true then the gradient will be all 0s
If you're using tensorflow and giving you're model a batch make sure you put model(batch, training=True) if training isn't set to true then the gradient will be all 0s