import torch


def cat_config(conf):
    """ Takes a list of float or uint8 tensors and flattens them into np.ndarray
    """
    return torch.cat([_.cpu().type(torch.uint8).detach() for _ in conf]).numpy()