def __init__(self, global_norm):
        """
        Args:
            global_norm(float): the threshold to clip with.
        """
        super(GlobalNormClip, self).__init__()
        self._norm = float(global_norm)

        Args:
            global_norm(float): the threshold to clip with.
        
tensorpack/tfutils/gradproc.py