Both sources explain neural network pruning techniques in PyTorch. The first source, "How to Prune Neural Networks with PyTorch," provides a general overview of the pruning concept and its various methods, along with practical examples of how to implement different pruning techniques using PyTorch's built-in functions. The second source, "Pruning Tutorial," focuses on a more in-depth explanation of pruning functionalities within PyTorch, demonstrating how to prune individual modules, apply iterative pruning, serialize pruned models, and even extend PyTorch with custom pruning methods.
Read this: https://towardsdatascience.com/how-to-prune-neural-networks-with-pytorch-ebef60316b91
And the PyTorch tutorial: https://pytorch.org/tutorials/intermediate/pruning_tutorial.html