import torch


def convert_input_dom(truthful_input, player_index):
    """
    Converts a truthful input into a set of input bounds for player i
    :param truthful_input: the current set of truthful bids
    :param player_index: the player whose input can vary
    :return: a tensor of upper and lower bounds in the format which MIPNetwork can accept.
    """
    input_lbs = truthful_input.clone()
    input_ubs = truthful_input.clone()
    input_lbs[player_index, :] = 0.0
    input_ubs[player_index, :] = 1.0
    return torch.stack((input_lbs.flatten(), input_ubs.flatten())).T