import torch


def vectorize_tensor_list(tensor_list):
    """ Vectorize all tensors in list.

    The tensors are all vectorized and concatenated in one single vector.

    Args:
        (list): The list of tensors.

    Returns:
        (torch.Tensor): The vectorized form.
    """

    return torch.cat([t.view(-1).detach() for t in tensor_list])