original_docstring: Normalizing to unit length along the specified dimension.
      Args:
        x: pytorch Variable
      Returns:
        x: pytorch Variable, same shape as input
      
docstring: Normalizing to unit length along the specified dimension.
docstring_tokens: Normalizing to unit length along the specified dimension .
code: def normalize(x, axis=-1):
      """Normalizing to unit length along the specified dimension.
      Args:
        x: pytorch Variable
      Returns:
        x: pytorch Variable, same shape as input
      """
      x = 1. * x / (torch.norm(x, 2, axis, keepdim=True).expand_as(x) + 1e-12)
      return x
code_tokens: def normalize ( x , axis = - 1 ) : x = 1. * x / ( torch . norm ( x , 2 , axis , keepdim = True ) . expand_as ( x ) + 1e-12 ) return x
short_docstring: Normalizing to unit length along the specified dimension.
short_docstring_tokens: Normalizing to unit length along the specified dimension .
comment: """Normalizing to unit length along the specified dimension.
      Args:
        x: pytorch Variable
      Returns:
        x: pytorch Variable, same shape as input
      """