I was looking at the Pytorch pruning tutorial (https://pytorch.org/tutorials/intermediate/pruning_tutorial.html# 3) and I am left confused about where in the process this pruning happens.

Does the setup in the tutorial happen before training, and then it is trained with the pruning method somewhere in the loop
Do the strategies in the tutorial happen after training when we have the final network weights?