16474aee0c575e615c78d32f2a170c3d7f8f0082,autokeras/graph.py,Graph,__init__,#Graph#Any#,12

Before Change



        // Add all nodes
        for layer in layers:
            self._add_node(layer.input)
            self._add_node(layer.output)

        // Add all edges
        for layer in layers:

After Change


        // node id start with 0
        self.node_to_id = {}
        self.edge_to_id = {}
        self.edge_id_to_input_ids = {}
        self.old_edge_ids = {}
        self.adj_list = {}
        self.reverse_adj_list = {}

        // Add all nodes
        for layer in layers:
            if isinstance(layer.input, list):
                for temp_input in layer.input:
                    self._add_node(temp_input)
            else:
                self._add_node(layer.input)
            self._add_node(layer.output)

        // Add all edges
        for layer in layers:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: jhfjhfj1/autokeras
Commit Name: 16474aee0c575e615c78d32f2a170c3d7f8f0082
Time: 2017-12-30
Author: jhfjhfj1@gmail.com
File Name: autokeras/graph.py
Class Name: Graph
Method Name: __init__


Project Name: tensorlayer/tensorlayer
Commit Name: 3cabfea9ada97247fa5308f7103f4fb7e90261e8
Time: 2019-04-08
Author: 37874862+warshallrho@users.noreply.github.com
File Name: tensorlayer/layers/core.py
Class Name: Layer
Method Name: __call__