If you are using nightly build, we just landed a pruning utility in nn.utils. The upcoming tutorial for it can be found here 84.
Otherwise, you will have to emulate what is done in the pruning module yourself.