parameters: (inp: Union[Tensor, SymbolVar])
return_statement: return full_like(inp, 1.0)
docstring: r"""Returns a tensor filled with ones with the same shape and data type as input tensor.
  
      Args:
          inp (Tensor): input tensor.
  
      Return:
          a tensor containing ones.
  
      Examples:
          >>> input = F.arange(6, dtype='int32').reshape(2,3)
          >>> F.ones_like(input)
          Tensor([[1 1 1]
           [1 1 1]], dtype=int32, device=xpux:0)
docstring_summary: r"""Returns a tensor filled with ones with the same shape and data type as input tensor.
docstring_tokens: r Returns a tensor filled with ones with the same shape and data type as input tensor .
function: def ones_like(inp: Union[Tensor, SymbolVar]) -> Union[Tensor, SymbolVar]:
      r"""Returns a tensor filled with ones with the same shape and data type as input tensor.
  
      Args:
          inp (Tensor): input tensor.
  
      Return:
          a tensor containing ones.
  
      Examples:
          >>> input = F.arange(6, dtype='int32').reshape(2,3)
          >>> F.ones_like(input)
          Tensor([[1 1 1]
           [1 1 1]], dtype=int32, device=xpux:0)
      """
      return full_like(inp, 1.0)
function_tokens: def ones_like ( inp : Union [ Tensor , SymbolVar ] ) -> Union [ Tensor , SymbolVar ] : return full_like ( inp , 1.0 )