original_docstring: 
      Enforces tensor to be positive. Changes the tensor in place. Produces no gradient.
  
      Args:
          weight: tensor to be positive
  
      
docstring: Enforces tensor to be positive. Changes the tensor in place. Produces no gradient.
docstring_tokens: Enforces tensor to be positive . Changes the tensor in place . Produces no gradient .
code: def positive(weight):
      """
      Enforces tensor to be positive. Changes the tensor in place. Produces no gradient.
  
      Args:
          weight: tensor to be positive
  
      """
      # with torch.no_grad():
      #     weight.clamp_(0)
      weight.data *= weight.data.ge(0).float()
code_tokens: def positive ( weight ) : weight . data *= weight . data . ge ( 0 ) . float ( )
short_docstring: Enforces tensor to be positive.
short_docstring_tokens: Enforces tensor to be positive .
comment: """
      Enforces tensor to be positive. Changes the tensor in place. Produces no gradient.
  
      Args:
          weight: tensor to be positive
  
      """$SEP$# with torch.no_grad():$SEP$#     weight.clamp_(0)