import torch


def concat_and_flatten(items):
    """
    Concatenate feature vectors together in a way that they can be handed into
    a linear layer
    :param items A list of ag.Variables which are vectors
    :return One long row vector of all of the items concatenated together
    """
    return torch.cat(items, 1).view(1, -1)