parameters: (input: Tensor, inplace: bool = False)
return_statement: return result
docstring: r"""relu(input, inplace=False) -> Tensor
  
      Applies the rectified linear unit function element-wise. See
      :class:`~torch.nn.ReLU` for more details.
docstring_summary: r"""relu(input, inplace=False) -> Tensor
docstring_tokens: r relu ( input inplace = False ) - > Tensor
function: def relu(input: Tensor, inplace: bool = False) -> Tensor:
      r"""relu(input, inplace=False) -> Tensor
  
      Applies the rectified linear unit function element-wise. See
      :class:`~torch.nn.ReLU` for more details.
      """
      if has_torch_function_unary(input):
          return handle_torch_function(relu, (input,), input, inplace=inplace)
      if inplace:
          result = torch.relu_(input)
      else:
          result = torch.relu(input)
      return result
function_tokens: def relu ( input : Tensor , inplace : bool = False ) -> Tensor : if has_torch_function_unary ( input ) : return handle_torch_function ( relu , ( input , ) , input , inplace = inplace ) if inplace : result = torch . relu_ ( input ) else : result = torch . relu ( input ) return result