16474aee0c575e615c78d32f2a170c3d7f8f0082,autokeras/graph.py,Graph,produce_model,#Graph#,75

Before Change



        id_to_tensor = {input_id: input_tensor}
        q = Queue()
        q.put(input_id)
        while not q.empty():
            u = q.get()
            for v, edge_id in self.adj_list[u]:
                layer = self.edge_list[edge_id]

After Change


                layer = self.edge_list[edge_id]

                if isinstance(layer, WeightedAdd):
                    edge_input_tensor = list(map(lambda x: id_to_tensor[x], self.edge_id_to_input_ids[edge_id]))
                else:
                    edge_input_tensor = id_to_tensor[u]

                if edge_id in self.old_edge_ids:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


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


Project Name: AlexsLemonade/refinebio
Commit Name: 93da095aac473d47f0613770bcae1daa29651ab1
Time: 2019-02-13
Author: miserlou@gmail.com
File Name: workers/data_refinery_workers/processors/create_compendia.py
Class Name:
Method Name: _perform_imputation