import torch


def euclidean_to_homogeneous(points):
    """Converts torch euclidean points to homogeneous
    Args:
        points torch tensor of shape (N, M): N euclidean points of dimension M
    Returns:
        torch tensor of shape (N, M+1): homogeneous points
    """
    return torch.cat((points, torch.ones(points.shape[0], 1).to(points.device)),-1)