def cast_graph_input_to_int32(self, input_name: str) -> Tuple[(bool, str)]:
    graph_input = self.model.find_graph_input(input_name)
    if ((graph_input is not None) and (graph_input.type.tensor_type.elem_type != TensorProto.INT32)):
        (cast_output, cast_node) = self.cast_input_to_int32(input_name)
        logger.debug(f'Casted graph input {input_name} to int32')
        return (True, cast_output)
    logger.debug(f'Did not cast graph input {input_name} to int32: found {(graph_input is not None)}')
    return (False, input_name)
def cast_graph_input_to_int32(self, input_name: str) -> Tuple[(bool, str)]:
    graph_input = self.model.find_graph_input(input_name)
    if ((graph_input is not None) and (graph_input.type.tensor_type.elem_type != TensorProto.INT32)):
        (cast_output, cast_node) = self.cast_input_to_int32(input_name)
        logger.debug(f'Casted graph input {input_name} to int32')
        return (True, cast_output)
    logger.debug(f'Did not cast graph input {input_name} to int32: found {(graph_input is not None)}')
    return (False, input_name)