def _args_to_matching_arrays(args_list, dtype_hint=None):
    'Converts a list to array using the first element for dtype.\n\n  This method is used to match the behavior of `tf.concat`.\n\n  Args:\n    args_list: A list or tuple of arguments.\n    dtype_hint: An optional hint used when converting the args to tensors.\n  Returns:\n    A list of tensors.\n  '
    dtype = None
    for arg in args_list:
        if ops.is_tensor(arg):
            dtype = arg.dtype
            break
    if (dtype is None):
        ret = []
        for arg in args_list:
            ret.append(ops.convert_to_tensor(arg, dtype, dtype_hint=dtype_hint))
            if (dtype is None):
                dtype = ret[(- 1)].dtype
    else:
        ret = [ops.convert_to_tensor(arg, dtype) for arg in args_list]
    return ret
Converts a list to array using the first element for dtype.

This method is used to match the behavior of `tf.concat`.

Args:
  args_list: A list or tuple of arguments.
  dtype_hint: An optional hint used when converting the args to tensors.
Returns:
  A list of tensors.
def _args_to_matching_arrays(args_list, dtype_hint=None):
    'Converts a list to array using the first element for dtype.\n\n  This method is used to match the behavior of `tf.concat`.\n\n  Args:\n    args_list: A list or tuple of arguments.\n    dtype_hint: An optional hint used when converting the args to tensors.\n  Returns:\n    A list of tensors.\n  '
    dtype = None
    for arg in args_list:
        if ops.is_tensor(arg):
            dtype = arg.dtype
            break
    if (dtype is None):
        ret = []
        for arg in args_list:
            ret.append(ops.convert_to_tensor(arg, dtype, dtype_hint=dtype_hint))
            if (dtype is None):
                dtype = ret[(- 1)].dtype
    else:
        ret = [ops.convert_to_tensor(arg, dtype) for arg in args_list]
    return ret