text: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  
  import math
  
  RESCALE_COEF = 1 / math.sqrt(2)
  
  
  def residual_connect(x, y, rescale=False):
      out = x + y
      if rescale:
          out *= RESCALE_COEF
      return out
  