parameters: (x: jt.Var)
return_statement: return jt.ternary(x<0, -one, x)
docstring: returns the signs of elements of x
  
      :param x: the input Var
      :type x: jt.Var
  
      Example:
          >>> a = jt.float32([0.99, 0, -0.99])
          >>> nn.sign(a)
          jt.Var([ 1.  0. -1.], dtype=float32)
docstring_summary: returns the signs of elements of x
docstring_tokens: returns the signs of elements of x
function: def sign(x: jt.Var) -> jt.Var:
      ''' returns the signs of elements of x
  
      :param x: the input Var
      :type x: jt.Var
  
      Example:
          >>> a = jt.float32([0.99, 0, -0.99])
          >>> nn.sign(a)
          jt.Var([ 1.  0. -1.], dtype=float32)
      '''
      one = jt.ones(x.shape)
      x = jt.ternary(x>0, one, x)
      return jt.ternary(x<0, -one, x)
function_tokens: def sign ( x : jt . Var ) -> jt . Var : one = jt . ones ( x . shape ) x = jt . ternary ( x > 0 , one , x ) return jt . ternary ( x < 0 , - one , x )