def det(tensor):
    """Detach a torch Tensor to a cpu numpy version

    Args:
        tensor (torch.Tensor): A tensor to be detached and turned into an ndarray

    Returns:
        (ndarray): The same data as an ndarray

    """
    return tensor.cpu().detach().numpy()