The One PyTorch Trick Which You Should Know
How hooks can improve your workflow significantly
Published in
4 min readApr 29, 2020
If you have ever used deep learning before, you know that debugging a model can be really hard sometimes. Tensor shape mismatches, exploding gradients, and countless other issues can surprise you. Solving these require looking at the model under the microscope. The most basic methods include littering the…