(const_nodes: List[onnx.NodeProto], res: Tensors)
return [node for node in const_nodes if node.output[0] in res]
It seems not needed since commit 6f2a72, but maybe it still prevents some unknown bug
    :param const_nodes: const nodes detected by `get_constant_nodes`
    :param res: The dict containing all tensors, got by `forward_all`
    :return: The constant nodes which have an output in res
It seems not needed since commit 6f2a72, but maybe it still prevents some unknown bug
    :param const_nodes: const nodes detected by `get_constant_nodes`
    :param res: The dict containing all tensors, got by `forward_all`
    :return: The constant nodes which have an output in res
It seems not needed since commit 6f2a72 but maybe it still prevents some unknown bug : param const_nodes : const nodes detected by get_constant_nodes : param res : The dict containing all tensors got by forward_all : return : The constant nodes which have an output in res
def clean_constant_nodes(const_nodes: List[onnx.NodeProto], res: Tensors):
    """
    It seems not needed since commit 6f2a72, but maybe it still prevents some unknown bug
    :param const_nodes: const nodes detected by `get_constant_nodes`
    :param res: The dict containing all tensors, got by `forward_all`
    :return: The constant nodes which have an output in res
    """
    return [node for node in const_nodes if node.output[0] in res]
def clean_constant_nodes ( const_nodes : List [ onnx . NodeProto ] , res : Tensors ) : return [ node for node in const_nodes if node . output [ 0 ] in res ]