Example on how to use batch-norm?

Setting requires_grad to False only freezes the parameters, but not the case for the moving averages.
I need to freeze them all.