def convert_args_to_laid_out_tensors(xs):
    """Convert list elements to laid-out-tensors when possible.

  Args:
    xs: a list
  Returns:
    a list
  """
    ret = []
    for x in xs:
        if hasattr(x, 'to_laid_out_tensor'):
            ret.append(x.to_laid_out_tensor())
        else:
            ret.append(x)
    return ret
