def get_relu_name(model, input_list):
    """
    Find the corresponding pairs that form conv-relu through the output of conv,
    and return two dictionaries: conv-relu and relu-conv
    """
    relu_to_conv_output = {}
    for node in model.graph.node:
        if node.op_type == "Relu" and node.input[0] in input_list:
            relu_to_conv_output[node.name] = node.input[0]
        elif node.op_type == "LeakyRelu":
            for attr in node.attribute:
                if attr.name == "alpha":
                    if attr.f == 0.1 and node.input[0] in input_list:
                        relu_to_conv_output[node.name] = node.input[0]

    return relu_to_conv_output

    Find the corresponding pairs that form conv-relu through the output of conv,
    and return two dictionaries: conv-relu and relu-conv
    
olive/passes/onnx/vitis_ai/quant_utils.py