parameters: (self, values)
docstring: Restore moving averages of batch normalization.
docstring_summary: Restore moving averages of batch normalization.
docstring_tokens: Restore moving averages of batch normalization .
function: def restore_moving_stats(self, values):
      """Restore moving averages of batch normalization."""
      device = "/gpu:0" if tf.test.is_gpu_available() else "/cpu:0"
      with tf.device(device):
        for var_, val in zip(self.moving_average_variables, values):
          var_.assign(val)
function_tokens: def restore_moving_stats ( self , values ) : device = "/gpu:0" if tf . test . is_gpu_available ( ) else "/cpu:0" with tf . device ( device ) : for var_ , val in zip ( self . moving_average_variables , values ) : var_ . assign ( val )