import torch


def torchify(array_list):

    """
    Function that turns a list of arrays into a list of torch tensors.

    Parameters
    ----------
    array_list: a list of numpy arrays

    Returns
    -------
    a list of torch tensors (corresponding to the original arrays)

    """

    return [torch.tensor(array_entry, dtype=torch.float) for array_entry in array_list]