def to_tuple(tensor):
    """
    Convert tensor to tuple.
    Args:
        tensor (torch.Tensor): any tensor
    Returns:
        tup (tuple): tuple form
    """
    tup = tuple(tensor.cpu().tolist())
    return tup