parameters: (inputs)
docstring: A context manager for (maybe) colocating with a list of input tensors.
  
    Args:
      inputs: A list of `Tensor` or `Operation` objects.
  
    Returns:
      A context manager.
docstring_summary: A context manager for (maybe) colocating with a list of input tensors.
docstring_tokens: A context manager for ( maybe ) colocating with a list of input tensors .
function: def _MaybeColocateWith(inputs):
    """A context manager for (maybe) colocating with a list of input tensors.
  
    Args:
      inputs: A list of `Tensor` or `Operation` objects.
  
    Returns:
      A context manager.
    """
    if not inputs:
      yield
    else:
      # NOTE(mrry): The `ops.colocate_with()` function accepts only a single
      # op or tensor, so we create one context manager per element in the list.
      with ops.colocate_with(inputs[0]), _MaybeColocateWith(inputs[1:]):
        yield
function_tokens: def _MaybeColocateWith ( inputs ) : if not inputs : yield else : # NOTE(mrry): The `ops.colocate_with()` function accepts only a single # op or tensor, so we create one context manager per element in the list. with ops . colocate_with ( inputs [ 0 ] ) , _MaybeColocateWith ( inputs [ 1 : ] ) : yield