Hot to get the Batchnorm2d parameters and feed them to the network in testing phase?

Do I have to get these values and feed them to the network in testing mode? I can’t find a complete code that use training and testing phase using batchnorm.