parameters: (labeled_tensor, dtype=None, name=None)
docstring: Creates an identical tensor with all elements set to one.
  
    Args:
      labeled_tensor: The input tensor.
      dtype: The type of the returned tensor.
      name: Optional op name.
  
    Returns:
      The tensor with elements set to one.
docstring_summary: Creates an identical tensor with all elements set to one.
docstring_tokens: Creates an identical tensor with all elements set to one .
function: def ones_like(labeled_tensor, dtype=None, name=None):
    """Creates an identical tensor with all elements set to one.
  
    Args:
      labeled_tensor: The input tensor.
      dtype: The type of the returned tensor.
      name: Optional op name.
  
    Returns:
      The tensor with elements set to one.
    """
    with ops.name_scope(name, 'lt_ones_like', [labeled_tensor]) as scope:
      labeled_tensor = core.convert_to_labeled_tensor(labeled_tensor)
      op = array_ops.ones_like(labeled_tensor.tensor, dtype=dtype, name=scope)
      return core.LabeledTensor(op, labeled_tensor.axes)
function_tokens: def ones_like ( labeled_tensor , dtype = None , name = None ) : with ops . name_scope ( name , 'lt_ones_like' , [ labeled_tensor ] ) as scope : labeled_tensor = core . convert_to_labeled_tensor ( labeled_tensor ) op = array_ops . ones_like ( labeled_tensor . tensor , dtype = dtype , name = scope ) return core . LabeledTensor ( op , labeled_tensor . axes )