parameters: (tensor: Tensor)
docstring: Fills the given ``tensor`` with the scalar value `1`.
  
      Args:
          tensor: tensor to be initialized.
docstring_summary: Fills the given ``tensor`` with the scalar value `1`.
docstring_tokens: Fills the given tensor with the scalar value 1 .
function: def ones_(tensor: Tensor) -> None:
      """Fills the given ``tensor`` with the scalar value `1`.
  
      Args:
          tensor: tensor to be initialized.
      """
      fill_(tensor, 1)
function_tokens: def ones_ ( tensor : Tensor ) -> None : fill_ ( tensor , 1 )