I’ve been training a model and have not been getting the results that I expect.  I have a suspicion that it might be due to vanishing/exploding gradients, but would like to verify this somehow.  How might I go about inspecting the gradients of my model to verify that this is in fact the case?